]> git.lizzy.rs Git - rust.git/commitdiff
Make line-breaking more consistent.
authorAnirudh Balaji <anirudhb@users.noreply.github.com>
Sun, 24 Jun 2018 22:31:03 +0000 (15:31 -0700)
committerGitHub <noreply@github.com>
Sun, 24 Jun 2018 22:31:03 +0000 (15:31 -0700)
src/libcore/slice/mod.rs

index 01db55a00f647ecd6a56e3add5c2cc92364affc9..a6d95b11825418f7e1300afb010b1c7d43f0a925 100644 (file)
@@ -1541,10 +1541,9 @@ pub fn rotate_right(&mut self, k: usize) {
     /// 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 @@ pub fn clone_from_slice(&mut self, src: &[T]) where T: Clone {
     /// 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]);