diff options
| author | Waffle <waffle.lapkin@gmail.com> | 2021-02-27 02:33:09 +0300 |
|---|---|---|
| committer | Waffle <waffle.lapkin@gmail.com> | 2021-02-27 02:33:09 +0300 |
| commit | d4fd8538cb01f8be6083d2597a294c673f968290 (patch) | |
| tree | 8e25f412a413220d191c6db39ecd1955f1af96c6 | |
| parent | 12d6238f4d598cfff94ed001b0633ec4490d05dc (diff) | |
| download | rust-d4fd8538cb01f8be6083d2597a294c673f968290.tar.gz rust-d4fd8538cb01f8be6083d2597a294c673f968290.zip | |
Change formatting of safety comment
| -rw-r--r-- | library/core/src/str/iter.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs index 93248d15833..524a672bfbd 100644 --- a/library/core/src/str/iter.rs +++ b/library/core/src/str/iter.rs @@ -1282,9 +1282,7 @@ impl<'a> SplitAsciiWhitespace<'a> { return ""; } - // Safety: - // - // Slice is created from str. + // SAFETY: Slice is created from str. unsafe { crate::str::from_utf8_unchecked(&self.inner.iter.iter.v) } } } |
