Skip to content

Commit

Permalink
std::vec::raw: clean up docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Dec 15, 2013
1 parent a43bf3f commit 0393c40
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/libstd/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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]) {
Expand All @@ -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]) {
Expand Down

0 comments on commit 0393c40

Please sign in to comment.