Project

General

Profile

Bug #11752

Bug in Rational documentation

Added by trygveflathen (Trygve Flathen) over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
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

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

Associated revisions

Revision 93254f4a
Added by nobu (Nobuyoshi Nakada) about 2 years ago

rational.c: fix rdoc [ci skip]

  • rational.c (rb_rational_plus): [DOC] fix an example. A patch by Trygve Flathen in [ruby-core:71755]. [Bug #11752]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57539
Added by nobu (Nobuyoshi Nakada) about 2 years ago

rational.c: fix rdoc [ci skip]

  • rational.c (rb_rational_plus): [DOC] fix an example. A patch by Trygve Flathen in [ruby-core:71755]. [Bug #11752]

Revision 57539
Added by nobu (Nobuyoshi Nakada) about 2 years ago

rational.c: fix rdoc [ci skip]

  • rational.c (rb_rational_plus): [DOC] fix an example. A patch by Trygve Flathen in [ruby-core:71755]. [Bug #11752]

Revision 57539
Added by nobu (Nobuyoshi Nakada) about 2 years ago

rational.c: fix rdoc [ci skip]

  • rational.c (rb_rational_plus): [DOC] fix an example. A patch by Trygve Flathen in [ruby-core:71755]. [Bug #11752]

Revision 16bbeb15
Added by naruse (Yui NARUSE) about 2 years ago

merge revision(s) 57539: [Backport #11752]

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57902
Added by naruse (Yui NARUSE) about 2 years ago

merge revision(s) 57539: [Backport #11752]

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]

Revision 0844dbdc
Added by nagachika (Tomoyuki Chikanaga) about 2 years ago

merge revision(s) 57539: [Backport #11752]

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58028
Added by nagachika (Tomoyuki Chikanaga) about 2 years ago

merge revision(s) 57539: [Backport #11752]

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]

Revision ae432a96
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 57539: [Backport #11752]

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58110
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 57539: [Backport #11752]

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]

History

Updated by ko1 (Koichi Sasada) over 3 years ago

  • Assignee set to zzak (Zachary Scott)

Updated by awwaiid (Brock Wilcox) over 3 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 :)

#3

Updated by znz (Kazuhiro NISHIYAMA) about 2 years ago

Updated by stomar (Marcus Stollsteimer) about 2 years ago

Any reason not to apply?

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

#5

Updated by nobu (Nobuyoshi Nakada) about 2 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 in [ruby-core:71755]. [Bug #11752]

Updated by naruse (Yui NARUSE) about 2 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 2 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 2 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 2 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.

Also available in: Atom PDF