Skip to content

Commit 0393c40

Browse files
committed
std::vec::raw: clean up docs.
1 parent a43bf3f commit 0393c40

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/libstd/vec.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,12 +2349,12 @@ pub mod raw {
23492349
}
23502350
}
23512351

2352-
/// Operations on `[u8]`
2352+
/// Operations on `[u8]`.
23532353
pub mod bytes {
23542354
use vec::raw;
23552355
use ptr;
23562356

2357-
/// A trait for operations on mutable operations on `[u8]`
2357+
/// A trait for operations on mutable `[u8]`s.
23582358
pub trait MutableByteVector {
23592359
/// Sets all bytes of the receiver to the given value.
23602360
fn set_memory(self, value: u8);
@@ -2372,7 +2372,9 @@ pub mod bytes {
23722372
/**
23732373
* Copies data from one vector to another.
23742374
*
2375-
* Copies `src` to `dst`. The source and destination may overlap.
2375+
* Copies `src` to `dst`. The source and destination may
2376+
* overlap. Fails if the length of `dst` is less than the length
2377+
* of `src`.
23762378
*/
23772379
#[inline]
23782380
pub fn copy_memory(dst: &mut [u8], src: &[u8]) {
@@ -2381,7 +2383,7 @@ pub mod bytes {
23812383
}
23822384

23832385
/**
2384-
* Allocate space in `dst` and append the data in `src`.
2386+
* Allocate space in `dst` and append the data to `src`.
23852387
*/
23862388
#[inline]
23872389
pub fn push_bytes(dst: &mut ~[u8], src: &[u8]) {

0 commit comments

Comments
 (0)