Skip to content

Commit afa3df7

Browse files
committed
---
yaml --- r: 147243 b: refs/heads/try2 c: 0393c40 h: refs/heads/master i: 147241: 037ed5e 147239: 29fbae4 v: v3
1 parent fb0473d commit afa3df7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: a43bf3ff99c0c801c4524f0f96d8d57e758e1044
8+
refs/heads/try2: 0393c402a6f523993bb47c579d7382bec507bde7
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)