summary refs log tree commit diff
path: root/src/libstd/vec.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-12-15 22:35:08 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2013-12-15 22:35:08 +1100
commit0393c402a6f523993bb47c579d7382bec507bde7 (patch)
tree2b3b6c5b9ab515db186d2b0489b1a499551b93bc /src/libstd/vec.rs
parenta43bf3ff99c0c801c4524f0f96d8d57e758e1044 (diff)
downloadrust-0393c402a6f523993bb47c579d7382bec507bde7.tar.gz
rust-0393c402a6f523993bb47c579d7382bec507bde7.zip
std::vec::raw: clean up docs.
Diffstat (limited to 'src/libstd/vec.rs')
-rw-r--r--src/libstd/vec.rs10
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]) {