summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-05 15:48:09 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-05 15:48:09 +0000
commit2db86440394caa983103ddab5233778684bb5731 (patch)
treeff64ab9057568ff7e42ed4b5505b48d61ee93b70 /rational.c
parent95b71ae3fb141bfcd857c7a9e90c0ab7c38bd47a (diff)
* rational.c: edited rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rational.c b/rational.c
index a9d9380..50c4c86 100644
--- a/rational.c
+++ b/rational.c
@@ -542,10 +542,10 @@ nurat_numerator(VALUE self)
*
* For example:
*
- * Rational(7).denominator #=> 1
- * Rational(7, 1).denominator #=> 1
- * Rational(9, -4).denominator #=> 4
- * Rational(-2, -10).denominator #=> 5
+ * Rational(7).denominator #=> 1
+ * Rational(7, 1).denominator #=> 1
+ * Rational(9, -4).denominator #=> 4
+ * Rational(-2, -10).denominator #=> 5
* rat.numerator.gcd(rat.denominator) #=> 1
*/
static VALUE
@@ -1557,7 +1557,7 @@ integer_numerator(VALUE self)
/*
* call-seq:
- * int.numerator -> 1
+ * int.denominator -> 1
*
* Returns 1.
*/