summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 17:49:34 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 17:49:34 +0000
commit072673ee41bf10822d44a88a21818e255ddfedbb (patch)
tree6bcc647423c55e74ac3f257beac14b0fc38d6080 /lib
parentfd4364d087bea81744aaf635985320014b8e1a78 (diff)
Merge from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rational.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rational.rb b/lib/rational.rb
index 4d0097b02e..69a3b76bf1 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -344,12 +344,12 @@ class Rational < Numeric
# Converts the rational to an Integer. Not the _nearest_ integer, the
# truncated integer. Study the following example carefully:
# Rational(+7,4).to_i # -> 1
- # Rational(-7,4).to_i # -> -2
+ # Rational(-7,4).to_i # -> -1
# (-1.75).to_i # -> -1
#
# In other words:
# Rational(-7,4) == -1.75 # -> true
- # Rational(-7,4).to_i == (-1.75).to_i # false
+ # Rational(-7,4).to_i == (-1.75).to_i # -> true
#