diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-05 11:15:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-05 11:15:49 +0000 |
commit | 2e548349dca17b1ea67696347eb92cf5e2936ae0 (patch) | |
tree | 034200a7bd783f0fa5097f23f0063a3049b2d689 | |
parent | aeb2ad0b7289324050dfffbd3db8d33aa82b1b16 (diff) | |
download | ruby-2e548349dca17b1ea67696347eb92cf5e2936ae0.tar.gz |
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/trunk@57539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | rational.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rational.c b/rational.c index 26324899e5..24e81b8af1 100644 --- a/rational.c +++ b/rational.c @@ -729,7 +729,7 @@ static double nurat_to_double(VALUE self); * Performs addition. * * Rational(2, 3) + Rational(2, 3) #=> (4/3) - * Rational(900) + Rational(1) #=> (900/1) + * Rational(900) + Rational(1) #=> (901/1) * Rational(-2, 9) + Rational(-9, 2) #=> (-85/18) * Rational(9, 8) + 4 #=> (41/8) * Rational(20, 9) + 9.8 #=> 12.022222222222222 |