diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-14 18:45:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-14 18:45:29 +0100 |
| commit | e0eb63a73ccfb9aa7b09b39b3c9fe23287f5cac9 (patch) | |
| tree | 319b79aaccee0d1fb8dea8cb8166a94bc1219a5f /library/core/src/array | |
| parent | bc0c816410fd4015a2bcb74cbd6084da46753df9 (diff) | |
| parent | 2fea03f5e69481606257a1d4dfeae2c717991e48 (diff) | |
| download | rust-e0eb63a73ccfb9aa7b09b39b3c9fe23287f5cac9.tar.gz rust-e0eb63a73ccfb9aa7b09b39b3c9fe23287f5cac9.zip | |
Rollup merge of #106860 - anden3:doc-double-spaces, r=Dylan-DPC
Remove various double spaces in the libraries. I was just pretty bothered by this when reading the source for a function, and was suggested to check if this happened elsewhere.
Diffstat (limited to 'library/core/src/array')
| -rw-r--r-- | library/core/src/array/iter.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/array/iter.rs b/library/core/src/array/iter.rs index b91c630183d..8259c087d22 100644 --- a/library/core/src/array/iter.rs +++ b/library/core/src/array/iter.rs @@ -109,8 +109,8 @@ impl<T, const N: usize> IntoIter<T, N> { /// use std::array::IntoIter; /// use std::mem::MaybeUninit; /// - /// # // Hi! Thanks for reading the code. This is restricted to `Copy` because - /// # // otherwise it could leak. A fully-general version this would need a drop + /// # // Hi! Thanks for reading the code. This is restricted to `Copy` because + /// # // otherwise it could leak. A fully-general version this would need a drop /// # // guard to handle panics from the iterator, but this works for an example. /// fn next_chunk<T: Copy, const N: usize>( /// it: &mut impl Iterator<Item = T>, @@ -211,7 +211,7 @@ impl<T, const N: usize> IntoIter<T, N> { let initialized = 0..0; // SAFETY: We're telling it that none of the elements are initialized, - // which is trivially true. And ∀N: usize, 0 <= N. + // which is trivially true. And ∀N: usize, 0 <= N. unsafe { Self::new_unchecked(buffer, initialized) } } |
