diff options
| author | Anirudh Balaji <anirudhb@users.noreply.github.com> | 2018-06-24 15:31:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-24 15:31:03 -0700 |
| commit | 57f7f22fe46a08c197e4cd1d2e78df9de4c00798 (patch) | |
| tree | 10bf714f069f185603d3396576b76b2f282ebfee /src/libcore/slice | |
| parent | 4eca24700be4cf9f1fad3e7674e4849f4de234a1 (diff) | |
| download | rust-57f7f22fe46a08c197e4cd1d2e78df9de4c00798.tar.gz rust-57f7f22fe46a08c197e4cd1d2e78df9de4c00798.zip | |
Make line-breaking more consistent.
Diffstat (limited to 'src/libcore/slice')
| -rw-r--r-- | src/libcore/slice/mod.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index 01db55a00f6..a6d95b11825 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -1541,10 +1541,9 @@ impl<T> [T] { /// let src = [1, 2, 3, 4]; /// let mut dst = [0, 0]; /// - /// // Note: the slices must be the same length, so - /// // you can slice the source to be the same size. - /// // Here we slice the source, four elements, to two, the same size - /// // as the destination slice. It *will* panic if we don't do this. + /// // Note: the slices must be the same length, so you can slice the + /// // source to be the same size. Here we slice the source, four elements, + /// // to two, the same size as the destination slice. It *will* panic if we don't do this. /// dst.clone_from_slice(&src[2..]); /// /// assert_eq!(src, [1, 2, 3, 4]); @@ -1611,10 +1610,9 @@ impl<T> [T] { /// let src = [1, 2, 3, 4]; /// let mut dst = [0, 0]; /// - /// // Note: the slices must be the same length, so - /// // you can slice the source to be the same size. - /// // Here we slice the source, four elements, to two, the same size - /// // as the destination slice. It *will* panic if we don't do this. + /// // Note: the slices must be the same length, so you can slice the + /// // source to be the same size. Here we slice the source, four elements, + /// // to two, the same size as the destination slice. It *will* panic if we don't do this. /// dst.copy_from_slice(&src[2..]); /// /// assert_eq!(src, [1, 2, 3, 4]); |
