summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-24 20:47:57 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-24 20:47:57 +0000
commitc2f9106b1a0e068e96564ef03a85a6efd16c4400 (patch)
tree049b18c0a53fa2a80274934853e07478dabef65b /numeric.c
parent0b5ce0f283d9e8df94f3053fb4101e94699c418d (diff)
Minor rdoc fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index 3ae1c283d5..97e22c058c 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1274,9 +1274,9 @@ flo_ceil(num)
* Rounds <i>flt</i> to the nearest integer. Equivalent to:
*
* def round
- * return floor(self+0.5) if self > 0.0
- * return ceil(self-0.5) if self < 0.0
- * return 0.0
+ * return (self+0.5).floor if self > 0.0
+ * return (self-0.5).ceil if self < 0.0
+ * return 0
* end
*
* 1.5.round #=> 2