diff options
| author | Stanislav Tkach <stanislav.tkach@gmail.com> | 2020-06-08 19:13:46 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-08 19:13:46 +0300 |
| commit | 54fdb578c64dd5385760f83876bd16e8f54d3784 (patch) | |
| tree | d5788529d9d82ce912b495762c023566d2d33026 | |
| parent | 73558160933b2764ed9a84b1b2b647e128eac3f8 (diff) | |
| download | rust-54fdb578c64dd5385760f83876bd16e8f54d3784.tar.gz rust-54fdb578c64dd5385760f83876bd16e8f54d3784.zip | |
Fix the typo (size of the size)
| -rw-r--r-- | src/libcore/slice/mod.rs | 4 |
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 |
