summaryrefslogtreecommitdiff
path: root/ext/dbm
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-30 00:29:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-30 00:29:28 +0000
commit28dedcb6a00329c4e6e25b0198a731ee4f3b4903 (patch)
treec21586c6d63c1e70897542d2f5ea7a19e2b37fe4 /ext/dbm
parent418328e29b5fb09a953c2179720717609e2df4e7 (diff)
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r--ext/dbm/dbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index c90fe71..ff3859d 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -1034,7 +1034,7 @@ fdbm_reject(VALUE obj)
* == 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'