Skip to content

Commit 57f7f22

Browse files
authored
Make line-breaking more consistent.
1 parent 4eca247 commit 57f7f22

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/libcore/slice/mod.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,10 +1541,9 @@ impl<T> [T] {
15411541
/// let src = [1, 2, 3, 4];
15421542
/// let mut dst = [0, 0];
15431543
///
1544-
/// // Note: the slices must be the same length, so
1545-
/// // you can slice the source to be the same size.
1546-
/// // Here we slice the source, four elements, to two, the same size
1547-
/// // as the destination slice. It *will* panic if we don't do this.
1544+
/// // Note: the slices must be the same length, so you can slice the
1545+
/// // source to be the same size. Here we slice the source, four elements,
1546+
/// // to two, the same size as the destination slice. It *will* panic if we don't do this.
15481547
/// dst.clone_from_slice(&src[2..]);
15491548
///
15501549
/// assert_eq!(src, [1, 2, 3, 4]);
@@ -1611,10 +1610,9 @@ impl<T> [T] {
16111610
/// let src = [1, 2, 3, 4];
16121611
/// let mut dst = [0, 0];
16131612
///
1614-
/// // Note: the slices must be the same length, so
1615-
/// // you can slice the source to be the same size.
1616-
/// // Here we slice the source, four elements, to two, the same size
1617-
/// // as the destination slice. It *will* panic if we don't do this.
1613+
/// // Note: the slices must be the same length, so you can slice the
1614+
/// // source to be the same size. Here we slice the source, four elements,
1615+
/// // to two, the same size as the destination slice. It *will* panic if we don't do this.
16181616
/// dst.copy_from_slice(&src[2..]);
16191617
///
16201618
/// assert_eq!(src, [1, 2, 3, 4]);

0 commit comments

Comments
 (0)