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

ruby-changes:31599

From: nagachika <ko1@a...>
Date: Thu, 14 Nov 2013 23:40:59 +0900 (JST)
Subject: [ruby-changes:31599] nagachika:r43678 (trunk): * ext/bigdecimal/lib/bigdecimal/util.rb: [DOC] remove example of

nagachika	2013-11-14 23:40:53 +0900 (Thu, 14 Nov 2013)

  New Revision: 43678

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43678

  Log:
    * ext/bigdecimal/lib/bigdecimal/util.rb: [DOC] remove example of
      Rational#to_d without argument. [Bug #8958]

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/lib/bigdecimal/util.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43677)
+++ ChangeLog	(revision 43678)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov 14 23:39:00 2013  CHIKANAGA Tomoyuki  <nagachika@r...>
+
+	* ext/bigdecimal/lib/bigdecimal/util.rb: [DOC] remove example of
+	  Rational#to_d without argument. [Bug #8958]
+
 Thu Nov 14 20:24:15 2013  Naohisa Goto  <ngotogenome@g...>
 
 	* ruby_atomic.h (ATOMIC_SIZE_CAS): fix compile error on Solaris
Index: ext/bigdecimal/lib/bigdecimal/util.rb
===================================================================
--- ext/bigdecimal/lib/bigdecimal/util.rb	(revision 43677)
+++ ext/bigdecimal/lib/bigdecimal/util.rb	(revision 43678)
@@ -115,8 +115,6 @@ class Rational < Numeric https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/lib/bigdecimal/util.rb#L115
   #
   #   r = (22/7.0).to_r
   #   # => (7077085128725065/2251799813685248)
-  #   r.to_d
-  #   # => #<BigDecimal:1a52bd8,'0.3142857142 8571427937 0154144999 105E1',45(63)>
   #   r.to_d(3)
   #   # => #<BigDecimal:1a44d08,'0.314E1',18(36)>
   def to_d(precision)

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

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