diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/vec.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs index e546b4063c1..c14068a7c88 100644 --- a/src/libstd/vec.rs +++ b/src/libstd/vec.rs @@ -2349,12 +2349,12 @@ pub mod raw { } } -/// Operations on `[u8]` +/// Operations on `[u8]`. pub mod bytes { use vec::raw; use ptr; - /// A trait for operations on mutable operations on `[u8]` + /// A trait for operations on mutable `[u8]`s. pub trait MutableByteVector { /// Sets all bytes of the receiver to the given value. fn set_memory(self, value: u8); @@ -2372,7 +2372,9 @@ pub mod bytes { /** * Copies data from one vector to another. * - * Copies `src` to `dst`. The source and destination may overlap. + * Copies `src` to `dst`. The source and destination may + * overlap. Fails if the length of `dst` is less than the length + * of `src`. */ #[inline] pub fn copy_memory(dst: &mut [u8], src: &[u8]) { @@ -2381,7 +2383,7 @@ pub mod bytes { } /** - * Allocate space in `dst` and append the data in `src`. + * Allocate space in `dst` and append the data to `src`. */ #[inline] pub fn push_bytes(dst: &mut ~[u8], src: &[u8]) { |
