summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorksss <[email protected]>2014-03-24 08:43:44 +0900
committerksss <[email protected]>2014-03-24 08:43:44 +0900
commit2981b4e3d9f5a23526a9201b30d4ced9f6a82783 (patch)
treecc74c23d936f958984b96e5fcb8ba2aeaf72a434 /mrblib
parent75eed54bbaa1ce0389f438490c723ff52ae9402b (diff)
downloadmruby-2981b4e3d9f5a23526a9201b30d4ced9f6a82783.tar.gz
mruby-2981b4e3d9f5a23526a9201b30d4ced9f6a82783.zip
Hash#__update fix typo
It's called by create Hash of over 126 keys
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/hash.rb b/mrblib/hash.rb
index 3c08ccd9c..d24fce849 100644
--- a/mrblib/hash.rb
+++ b/mrblib/hash.rb
@@ -197,7 +197,7 @@ class Hash
end
def __update(h)
- h.each_key{|k| self[k] = h[v]}
+ h.each_key{|k| self[k] = h[k]}
self
end
end