aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-14 16:46:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-14 16:46:18 +0000
commit1ffc413a983b9fdbc5495d9861a466fed98d07af (patch)
tree7ff625f21eda9daaac93cd421a51e095fe374aae
parent134418d06b824746a6a89a8442c4b98cea2d26b5 (diff)
downloadruby-1ffc413a983b9fdbc5495d9861a466fed98d07af.tar.gz
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
-rw-r--r--ChangeLog5
-rw-r--r--numeric.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d1029b21c..094677adb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jun 15 01:46:16 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c: [DOC] fix rdoc directive, and an example of negative
+ value. [ruby-core:76025] [Bug #12487]
+
Wed Jun 15 01:44:42 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/mkconfig.rb: provide Unicode Version information as
diff --git a/numeric.c b/numeric.c
index b2b2e7ca76..c92b7b430b 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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