Project

General

Profile

Actions

Bug #13157

closed

Rational doc bug

Added by criglerj (Jim Crigler) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.3.3, 2.4.0
[ruby-core:79254]

Description

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.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11752: Bug in Rational documentationClosedzzak (zzak _)Actions
Actions #1

Updated by znz (Kazuhiro NISHIYAMA) about 7 years ago

  • Related to Bug #11752: Bug in Rational documentation added

Updated by stomar (Marcus Stollsteimer) about 7 years ago

  • Status changed from Open to Closed

Fixed with r57539 (#11752).

Actions

Also available in: Atom PDF

Like0
Like0Like0