about summary refs log tree commit diff
diff options
context:
space:
mode:
authoryancy <yancy@yancy.lol>2022-11-07 16:51:23 +0100
committeryancy <yancy@yancy.lol>2022-11-07 16:51:23 +0100
commitd62582f92ac574f1998658ab2f9c85efa8c74396 (patch)
tree84b8aa9bd69b76395728b76b73db2a983c97ef49
parent534ddc6166a9031b0c269544929d68f2539ea7a0 (diff)
downloadrust-d62582f92ac574f1998658ab2f9c85efa8c74396.tar.gz
rust-d62582f92ac574f1998658ab2f9c85efa8c74396.zip
rustdoc: Add mutable to the description
-rw-r--r--library/core/src/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 4f1bb17344b..0fde931140f 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -3524,8 +3524,8 @@ impl<T> [T] {
         }
     }
 
-    /// Transmute the slice to a slice of another type, ensuring alignment of the types is
-    /// maintained.
+    /// Transmute the mutable slice to a mutable slice of another type, ensuring alignment of the
+    /// types is maintained.
     ///
     /// This method splits the slice into three distinct slices: prefix, correctly aligned middle
     /// slice of a new type, and the suffix slice. The method may make the middle slice the greatest