]> git.lizzy.rs Git - rust.git/commitdiff
Fix the typo (size of the size)
authorStanislav Tkach <stanislav.tkach@gmail.com>
Mon, 8 Jun 2020 16:13:46 +0000 (19:13 +0300)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2020 16:13:46 +0000 (19:13 +0300)
src/libcore/slice/mod.rs

index ff333f77334f762a2874afc7ed771a48a1e69281..4efb1db7a1a68b1cb3c7da985ac9719c91804043 100644 (file)
@@ -409,7 +409,7 @@ pub fn as_mut_ptr(&mut self) -> *mut T {
     /// The returned range is half-open, which means that the end pointer
     /// points *one past* the last element of the slice. This way, an empty
     /// slice is represented by two equal pointers, and the difference between
-    /// the two pointers represents the size of the size.
+    /// the two pointers represents the size of the slice.
     ///
     /// See [`as_ptr`] for warnings on using these pointers. The end pointer
     /// requires extra caution, as it does not point to a valid element in the
@@ -464,7 +464,7 @@ pub fn as_ptr_range(&self) -> Range<*const T> {
     /// The returned range is half-open, which means that the end pointer
     /// points *one past* the last element of the slice. This way, an empty
     /// slice is represented by two equal pointers, and the difference between
-    /// the two pointers represents the size of the size.
+    /// the two pointers represents the size of the slice.
     ///
     /// See [`as_mut_ptr`] for warnings on using these pointers. The end
     /// pointer requires extra caution, as it does not point to a valid element