**diff options**

author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-03 17:46:28 (GMT) |
---|---|---|

committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-03 17:46:28 (GMT) |

commit | b9e0294edaceecb177401902f3809a45af666d7e (patch) | |

tree | 6c83191a7891bfb4449e4c61bcf944ae968319b7 /rational.c | |

parent | c30e32d075478c62580c7d3f5699c2c477503b41 (diff) |

fix typos.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Diffstat (limited to 'rational.c')

-rw-r--r-- | rational.c | 6 |

1 files changed, 3 insertions, 3 deletions

@@ -1384,7 +1384,7 @@ nurat_to_r(VALUE self) the choice of a. Therefore we can simply ignore this case. Note 2: At first, we need to consider the closed interval [a,b]. but since a and b have the denominator 2^(|e|+1) whereas x itself - has a denominator <= 2^|e|, we can restrict the seach to the open + has a denominator <= 2^|e|, we can restrict the search to the open interval (a,b). So, for given a and b (0 < a < b) we are searching a rational number y with a <= y <= b. @@ -2097,7 +2097,7 @@ string_to_r_strict(VALUE self) * * Returns a rational which denotes the string form. The parser * ignores leading whitespaces and trailing garbage. Any digit - * sequences can be separeted by an underscore. Returns zero for null + * sequences can be separated by an underscore. Returns zero for null * or garbage string. * * NOTE: '0.3'.to_r isn't the same as 0.3.to_r. The former is @@ -2223,7 +2223,7 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass) * Rational(4, -6) #=> (-2/3) * 3.to_r #=> (3/1) * - * You can also create ratioanl object from floating-point numbers or + * You can also create rational object from floating-point numbers or * strings. * * Rational(0.3) #=> (5404319552844595/18014398509481984) |