aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-15 04:49:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-15 04:49:59 +0000
commit4bd1d6b2a1b4df3d2e9d2725dba379cc16893b8d (patch)
tree6c618c94c8f261906d2544badd37d943936cbd4c /string.c
parentf0302c0a28eda374c89d334b89609f54d6644783 (diff)
downloadruby-4bd1d6b2a1b4df3d2e9d2725dba379cc16893b8d.tar.gz
string.c: radix indicators [ci skip]
* string.c (rb_str_oct): [DOC] mention radix indicators. [ruby-core:71310] [Bug #11648] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/string.c b/string.c
index 1bd7582495..2c8089b94c 100644
--- a/string.c
+++ b/string.c
@@ -8033,6 +8033,9 @@ rb_str_hex(VALUE str)
* "-377".oct #=> -255
* "bad".oct #=> 0
* "0377bad".oct #=> 255
+ *
+ * If +str+ starts with <code>0</code>, radix indicators are hornored.
+ * See Kernel#Integer.
*/
static VALUE