diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-07 14:52:28 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-07 18:10:11 -0700 |
| commit | 3bd1f32cd945fab63777b71ef76f23d758e2904c (patch) | |
| tree | 8035a0aa8bf9fa926484604074427146ec295b1d /src/libcore/at_vec.rs | |
| parent | 07fe5611ade0e02109a5fa72881c6cd43bacbb29 (diff) | |
| download | rust-3bd1f32cd945fab63777b71ef76f23d758e2904c.tar.gz rust-3bd1f32cd945fab63777b71ef76f23d758e2904c.zip | |
Convert all kind bounds to camel case. Remove send, owned keywords.
Diffstat (limited to 'src/libcore/at_vec.rs')
| -rw-r--r-- | src/libcore/at_vec.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/at_vec.rs b/src/libcore/at_vec.rs index 4cf0b8f332d..717993e78c1 100644 --- a/src/libcore/at_vec.rs +++ b/src/libcore/at_vec.rs @@ -89,7 +89,7 @@ pure fn build_sized_opt<A>(size: Option<uint>, // Appending #[inline(always)] -pure fn append<T: copy>(lhs: @[T], rhs: &[const T]) -> @[T] { +pure fn append<T: Copy>(lhs: @[T], rhs: &[const T]) -> @[T] { do build_sized(lhs.len() + rhs.len()) |push| { for vec::each(lhs) |x| { push(x); } for uint::range(0, rhs.len()) |i| { push(rhs[i]); } @@ -125,7 +125,7 @@ pure fn from_fn<T>(n_elts: uint, op: iter::InitOp<T>) -> @[T] { * Creates an immutable vector of size `n_elts` and initializes the elements * to the value `t`. */ -pure fn from_elem<T: copy>(n_elts: uint, t: T) -> @[T] { +pure fn from_elem<T: Copy>(n_elts: uint, t: T) -> @[T] { do build_sized(n_elts) |push| { let mut i: uint = 0u; while i < n_elts { push(t); i += 1u; } @@ -133,7 +133,7 @@ pure fn from_elem<T: copy>(n_elts: uint, t: T) -> @[T] { } #[cfg(notest)] -impl<T: copy> @[T]: Add<&[const T],@[T]> { +impl<T: Copy> @[T]: Add<&[const T],@[T]> { #[inline(always)] pure fn add(rhs: &[const T]) -> @[T] { append(self, rhs) |
