Issue #13157 has been reported by Jim Crigler.

----------------------------------------
Bug #13157: Rational doc bug
https://bugs.ruby-lang.org/issues/13157

* Author: Jim Crigler
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.3, 2.4.0
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
On the ruby-doc page for Rational, the following example appears.

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

I think it should be

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

Ruby executes the expression correctly, i.e., this is documentation only.



-- 
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>