Actions
Bug #11752
closedBug in Rational documentation
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
Updated by ko1 (Koichi Sasada) over 9 years ago
- Assignee set to zzak (zzak _)
Updated by awwaiid (Brock Wilcox) over 9 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 :)
Updated by znz (Kazuhiro NISHIYAMA) over 8 years ago
- Related to Bug #13157: Rational doc bug added
Updated by stomar (Marcus Stollsteimer) over 8 years ago
Any reason not to apply?
An obvious typo, but already 2 issues, one of them more than a year old...
Updated by nobu (Nobuyoshi Nakada) over 8 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 8 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 8 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 8 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 8 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
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0