From 80153973180f0c96affaa85b1ce44283c3699d48 Mon Sep 17 00:00:00 2001 From: zzak Date: Fri, 4 Oct 2013 10:56:27 +0000 Subject: [PATCH] * ext/dbm/dbm.c: [DOC] Fix wrong constant name in DBM by @edward [Fixes GH-409] https://github.com/ruby/ruby/pull/409 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/dbm/dbm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a5300cf319..a9d718fbba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 4 19:54:09 2013 Zachary Scott + + * ext/dbm/dbm.c: [DOC] Fix wrong constant name in DBM by @edward + [Fixes GH-409] https://github.com/ruby/ruby/pull/409 + Fri Oct 4 19:49:42 2013 Aman Gupta * gc.c: rename heap.free_num as heap.swept_num to clarify meaning and diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index eb05afc1a4..c77897ece5 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -1011,7 +1011,7 @@ fdbm_reject(VALUE obj) * == Example * * require 'dbm' - * db = DBM.open('rfcs', 666, DBM::CREATRW) + * db = DBM.open('rfcs', 666, DBM::WRCREAT) * db['822'] = 'Standard for the Format of ARPA Internet Text Messages' * db['1123'] = 'Requirements for Internet Hosts - Application and Support' * db['3068'] = 'An Anycast Prefix for 6to4 Relay Routers'