diff options
Diffstat (limited to 'src/libcore/float.rs')
| -rw-r--r-- | src/libcore/float.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/float.rs b/src/libcore/float.rs index 7d13602ecc0..1ba6e75a1ec 100644 --- a/src/libcore/float.rs +++ b/src/libcore/float.rs @@ -236,7 +236,7 @@ fn to_str(num: float, digits: uint) -> str { * # Return value * * `none` if the string did not represent a valid number. Otherwise, - * `some(n)` where `n` is the floating-point number represented by `[num]/~`. + * `some(n)` where `n` is the floating-point number represented by `[num]`. */ fn from_str(num: str) -> option<float> { if num == "inf" { @@ -261,7 +261,7 @@ fn from_str(num: str) -> option<float> { _ { ret none; } } - //Determine if first char is '-'/'+'. Set ~[pos] and ~[neg] accordingly. + //Determine if first char is '-'/'+'. Set [pos] and [neg] accordingly. let mut neg = false; //Sign of the result alt str::char_at(num, 0u) { '-' { |
