diff options
| author | Michael Sullivan <sully@msully.net> | 2012-07-11 16:49:02 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-07-12 15:13:18 -0700 |
| commit | 1c62f5ff74e8c6d434001d4571e5f28ae2705ed9 (patch) | |
| tree | 062b0fa7b1f70838d8964a0f14b7d44ee83c5062 /src/libcore/float.rs | |
| parent | 46fba10fe82ef9a584118b8d2298cdfc49320c85 (diff) | |
| download | rust-1c62f5ff74e8c6d434001d4571e5f28ae2705ed9.tar.gz rust-1c62f5ff74e8c6d434001d4571e5f28ae2705ed9.zip | |
Get rid of all of the remaining /~s in the code base.
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) { '-' { |
