diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-14 16:46:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-14 16:46:18 +0000 |
commit | 6c9ffbf5b36344820f44b365925b23d85224dfdf (patch) | |
tree | 7ff625f21eda9daaac93cd421a51e095fe374aae /numeric.c | |
parent | a7ce662a85ac1827fe644436c09fe7dee567695d (diff) |
numeric.c: fix doc of Integer#digits [ci skip]
* numeric.c: [DOC] fix rdoc directive, and an example of negative
value. [ruby-core:76025] [Bug #12487]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4479,7 +4479,7 @@ rb_int_bit_length(VALUE num) } /* - * Document-method: Integer#digits(base=10) + * Document-method: Integer#digits * call-seq: * int.digits -> [int] * int.digits(base) -> [int] @@ -4491,9 +4491,9 @@ rb_int_bit_length(VALUE num) * * 12345.digits #=> [5, 4, 3, 2, 1] * 12345.digits(7) #=> [4, 6, 6, 0, 5] - * -12345.digits(7) #=> [4, 6, 6, 0, 5] * 12345.digits(100) #=> [45, 23, 1] * + * -12345.digits(7) #=> Math::DomainError */ static VALUE |