diff options
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1366,7 +1366,8 @@ NOINSERT_UPDATE_CALLBACK(hash_aset_str); * h["a"] = 9 * h["c"] = 4 * h #=> {"a"=>9, "b"=>200, "c"=>4} - * h.store("d", 42) #=> {"a"=>9, "b"=>200, "c"=>4, "d"=>42} + * h.store("d", 42) #=> 42 + * h #=> {"a"=>9, "b"=>200, "c"=>4, "d"=>42} * * +key+ should not have its value changed while it is in use as a key (an * <tt>unfrozen String</tt> passed as a key will be duplicated and frozen). |