diff options
| author | Taras Tsugrii <taras.tsugriy@gmail.com> | 2023-08-15 14:26:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 14:26:14 -0500 |
| commit | 785ebd9b21b15ab1b90b7e8765b9a5072a08a7e4 (patch) | |
| tree | f6250475c92fe31019e6b4a7b467dd1f5d759512 | |
| parent | c57393e4f8b88444fbf0985a81a2d662862f2733 (diff) | |
| download | rust-785ebd9b21b15ab1b90b7e8765b9a5072a08a7e4.tar.gz rust-785ebd9b21b15ab1b90b7e8765b9a5072a08a7e4.zip | |
[nit] Fix a comment typo.
| -rw-r--r-- | library/alloc/src/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs index 921ce850d1e..38f9f39fbf8 100644 --- a/library/alloc/src/str.rs +++ b/library/alloc/src/str.rs @@ -612,7 +612,7 @@ pub unsafe fn from_boxed_utf8_unchecked(v: Box<[u8]>) -> Box<str> { } /// Converts the bytes while the bytes are still ascii. -/// For better average performance, this is happens in chunks of `2*size_of::<usize>()`. +/// For better average performance, this happens in chunks of `2*size_of::<usize>()`. /// Returns a vec with the converted bytes. #[inline] #[cfg(not(test))] |
