From 365fae4dd9849e21c1494016bbd18f01d1b015df Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 15 Dec 2015 04:49:59 +0000 Subject: 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 --- string.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'string.c') 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 0, radix indicators are hornored. + * See Kernel#Integer. */ static VALUE -- cgit v1.2.3