Project

General

Profile

Actions

Bug #11752

closed

Bug in Rational documentation

Added by trygveflathen (Trygve Flathen) over 8 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:71755]

Description

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) rational-addition-doc.patch awwaiid (Brock Wilcox), 12/15/2015 03:28 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #13157: Rational doc bugClosedActions

Updated by ko1 (Koichi Sasada) over 8 years ago

  • Assignee set to zzak (zzak _)

Updated by awwaiid (Brock Wilcox) over 8 years ago

Here is a patch for trunk -- I am practicing the correct way to submit patches here and this seemed like an easy start :)

Actions #3

Updated by znz (Kazuhiro NISHIYAMA) about 7 years ago

Updated by stomar (Marcus Stollsteimer) about 7 years ago

Any reason not to apply?

An obvious typo, but already 2 issues, one of them more than a year old...

Actions #5

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Open to Closed

Applied in changeset r57539.


rational.c: fix rdoc [ci skip]

  • rational.c (rb_rational_plus): [DOC] fix an example.
    A patch by Trygve Flathen <at.ruby-lang AT flathen.net> in
    [ruby-core:71755]. [Bug #11752]

Updated by naruse (Yui NARUSE) about 7 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.4: DONE

ruby_2_4 r57902 merged revision(s) 57539.

Updated by nagachika (Tomoyuki Chikanaga) about 7 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.4: DONE to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE

Updated by nagachika (Tomoyuki Chikanaga) about 7 years ago

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

ruby_2_3 r58028 merged revision(s) 57539.

Updated by usa (Usaku NAKAMURA) about 7 years ago

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0