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

ruby-changes:45466

From: nobu <ko1@a...>
Date: Sun, 5 Feb 2017 20:15:54 +0900 (JST)
Subject: [ruby-changes:45466] nobu:r57539 (trunk): rational.c: fix rdoc [ci skip]

nobu	2017-02-05 20:15:49 +0900 (Sun, 05 Feb 2017)

  New Revision: 57539

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

  Log:
    rational.c: fix rdoc [ci skip]
    
    * rational.c (rb_rational_plus): [DOC] fix an example.
      A patch by Trygve Flathen <at.ruby-lang AT flathen.net> in
      [ruby-core:71755].  [Bug #11752]

  Modified files:
    trunk/rational.c
Index: rational.c
===================================================================
--- rational.c	(revision 57538)
+++ rational.c	(revision 57539)
@@ -729,7 +729,7 @@ static double nurat_to_double(VALUE self https://github.com/ruby/ruby/blob/trunk/rational.c#L729
  * Performs addition.
  *
  *    Rational(2, 3)  + Rational(2, 3)   #=> (4/3)
- *    Rational(900)   + Rational(1)      #=> (900/1)
+ *    Rational(900)   + Rational(1)      #=> (901/1)
  *    Rational(-2, 9) + Rational(-9, 2)  #=> (-85/18)
  *    Rational(9, 8)  + 4                #=> (41/8)
  *    Rational(20, 9) + 9.8              #=> 12.022222222222222

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

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