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 | |
| 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')
| -rw-r--r-- | src/libcore/dvec.rs | 2 | ||||
| -rw-r--r-- | src/libcore/float.rs | 4 | ||||
| -rw-r--r-- | src/libcore/result.rs | 4 | ||||
| -rw-r--r-- | src/libcore/unsafe.rs | 2 | ||||
| -rw-r--r-- | src/libcore/vec.rs | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/libcore/dvec.rs b/src/libcore/dvec.rs index f9bb58380b2..1784acc1414 100644 --- a/src/libcore/dvec.rs +++ b/src/libcore/dvec.rs @@ -32,7 +32,7 @@ export unwrap; * # WARNING * * For maximum performance, this type is implemented using some rather - * unsafe code. In particular, this innocent looking `[mut A]/~` pointer + * unsafe code. In particular, this innocent looking `~[mut A]` pointer * *may be null!* Therefore, it is important you not reach into the * data structure manually but instead use the provided extensions. * 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) { '-' { diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 677d19e0964..f7f6f9ca03b 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -247,8 +247,8 @@ impl extensions<T:copy, E:copy> for result<T,E> { * if x == uint::max_value { ret err("overflow"); } * else { ret ok(x+1u); } * } - * map([1u, 2u, 3u]/~, inc_conditionally).chain {|incd| - * assert incd == [2u, 3u, 4u]/~; + * map(~[1u, 2u, 3u], inc_conditionally).chain {|incd| + * assert incd == ~[2u, 3u, 4u]; * } */ fn map_vec<T,U:copy,V:copy>( diff --git a/src/libcore/unsafe.rs b/src/libcore/unsafe.rs index ad7017444dd..b07c9465df7 100644 --- a/src/libcore/unsafe.rs +++ b/src/libcore/unsafe.rs @@ -39,7 +39,7 @@ unsafe fn bump_box_refcount<T>(+t: @T) { forget(t); } * * # Example * - * assert transmute("L") == [76u8, 0u8]/~; + * assert transmute("L") == ~[76u8, 0u8]; */ unsafe fn transmute<L, G>(-thing: L) -> G { let newthing = reinterpret_cast(thing); diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index a4bc4d66999..c4929f86d5f 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -666,14 +666,14 @@ pure fn filter<T: copy>(v: &[T], f: fn(T) -> bool) -> ~[T] { * * Flattens a vector of vectors of T into a single vector of T. */ -pure fn concat<T: copy>(v: &[[T]/~]) -> ~[T] { +pure fn concat<T: copy>(v: &[~[T]]) -> ~[T] { let mut r = ~[]; for each(v) |inner| { unsafe { push_all(r, inner); } } ret r; } /// Concatenate a vector of vectors, placing a given separator between each -pure fn connect<T: copy>(v: &[[T]/~], sep: T) -> ~[T] { +pure fn connect<T: copy>(v: &[~[T]], sep: T) -> ~[T] { let mut r: ~[T] = ~[]; let mut first = true; for each(v) |inner| { |
