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

From: at.ruby-lang@...
Date: 2015-11-30 13:44:02 UTC
List: ruby-core #71755
Issue #11752 has been reported by Trygve Flathen.

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

* Author: Trygve Flathen
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
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



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

In This Thread

Prev Next