aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--hash.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ae72005fd6..fc7e868fd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Nov 13 10:43:19 2013 Zachary Scott <e@zzak.io>
+
+ * hash.c: [DOC] Adds an example for Hash#store
+
Wed Nov 13 09:03:40 2013 Zachary Scott <e@zzak.io>
* doc/regexp.rdoc: [DOC] add note about Bug #4044 as suggested by
diff --git a/hash.c b/hash.c
index 4a0838c04d..bcd087aec3 100644
--- a/hash.c
+++ b/hash.c
@@ -1266,6 +1266,7 @@ static 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}
*
* +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).