[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>

Hi,

15 messages 2017/02/15

[ruby-core:79825] [Ruby trunk Bug#13157][Closed] Rational doc bug

From: sto.mar@...
Date: 2017-02-28 20:47:08 UTC
List: ruby-core #79825
Issue #13157 has been updated by Marcus Stollsteimer.

Status changed from Open to Closed

Fixed with r57539 (#11752).

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

* Author: Jim Crigler
* Status: Closed
* 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>

In This Thread

Prev Next