about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-10 01:06:32 +0200
committerGitHub <noreply@github.com>2020-06-10 01:06:32 +0200
commit80d60cc25e0cab2343e00ac427cd0e73ab0ceae2 (patch)
treed79aee9ffb91f69fbad948a1576935fc91f8effe /src
parent161a8bf8659b89b3e2ae4a21ee14311359d1db87 (diff)
parent54fdb578c64dd5385760f83876bd16e8f54d3784 (diff)
downloadrust-80d60cc25e0cab2343e00ac427cd0e73ab0ceae2.tar.gz
rust-80d60cc25e0cab2343e00ac427cd0e73ab0ceae2.zip
Rollup merge of #73148 - DarkEld3r:patch-1, r=jonas-schievink
Fix a typo (size of the size)
Diffstat (limited to 'src')
-rw-r--r--src/libcore/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs
index ff333f77334..4efb1db7a1a 100644
--- a/src/libcore/slice/mod.rs
+++ b/src/libcore/slice/mod.rs
@@ -409,7 +409,7 @@ impl<T> [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 @@ impl<T> [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