Make line-breaking more consistent.

This commit is contained in:
Anirudh Balaji 2018-06-24 15:31:03 -07:00 committed by GitHub
parent 4eca24700b
commit 57f7f22fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);