[前][次][番号順一覧][スレッド一覧]

ruby-changes:43344

From: nobu <ko1@a...>
Date: Wed, 15 Jun 2016 01:46:21 +0900 (JST)
Subject: [ruby-changes:43344] nobu:r55418 (trunk): numeric.c: fix doc of Integer#digits [ci skip]

nobu	2016-06-15 01:46:18 +0900 (Wed, 15 Jun 2016)

  New Revision: 55418

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55418

  Log:
    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]

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55417)
+++ ChangeLog	(revision 55418)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun 15 01:46:16 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* tool/mkconfig.rb: provide Unicode Version information as
Index: numeric.c
===================================================================
--- numeric.c	(revision 55417)
+++ numeric.c	(revision 55418)
@@ -4479,7 +4479,7 @@ rb_int_bit_length(VALUE num) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4479
 }
 
 /*
- *  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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4491
  *
  *     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]