ruby-changes:36984
From: nobu <ko1@a...>
Date: Tue, 30 Dec 2014 09:29:32 +0900 (JST)
Subject: [ruby-changes:36984] nobu:r49065 (trunk): dbm.c: fix doc
nobu 2014-12-30 09:29:28 +0900 (Tue, 30 Dec 2014) New Revision: 49065 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49065 Log: dbm.c: fix doc * ext/dbm/dbm.c (Init_dbm): [DOC] as UNIX permissions are octal numbers, needs to be prefixed by 0. [Fix GH-800] [ci skip] Modified files: trunk/ChangeLog trunk/ext/dbm/dbm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 49064) +++ ChangeLog (revision 49065) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Dec 30 09:29:26 2014 Bernhard M. Wiedemann <bernhard+git@l...> + + * ext/dbm/dbm.c (Init_dbm): [DOC] as UNIX permissions are octal + numbers, needs to be prefixed by 0. [Fix GH-800] + Tue Dec 30 08:57:39 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> * lib/unicode_normalize.rb: typo fix. [ci skip] Index: ext/dbm/dbm.c =================================================================== --- ext/dbm/dbm.c (revision 49064) +++ ext/dbm/dbm.c (revision 49065) @@ -1034,7 +1034,7 @@ fdbm_reject(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ext/dbm/dbm.c#L1034 * == Example * * require 'dbm' - * db = DBM.open('rfcs', 666, DBM::WRCREAT) + * db = DBM.open('rfcs', 0666, 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' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/