[ruby-core:80340] [Ruby trunk Bug#11752] Bug in Rational documentation

From: usa@...
Date: 2017-03-25 17:34:17 UTC
List: ruby-core #80340
Issue #11752 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: DONE to 2.2: DONE, 2.3: DONE, 2.4: DONE

ruby_2_2 r58110 merged revision(s) 57539.

----------------------------------------
Bug #11752: Bug in Rational documentation
https://bugs.ruby-lang.org/issues/11752#change-63820

* Author: trygveflathen (Trygve Flathen)
* Status: Closed
* Priority: Normal
* Assignee: zzak (Zachary Scott)
* Target version: 
* ruby -v: 
* Backport: 2.2: DONE, 2.3: DONE, 2.4: DONE
----------------------------------------
Example for the + operator states that 900+1=900.

~~~
Rational(900)   + Rational(1)      #=> (900/1)
~~~

Seen in
http://ruby-doc.org/core-1.9.2/Rational.html
and
http://ruby-doc.org/core-2.2.3/Rational.html

---Files--------------------------------
rational-addition-doc.patch (528 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next