about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-16 08:43:53 +0200
committerGitHub <noreply@github.com>2023-08-16 08:43:53 +0200
commit8201f0ffda9b98f2835cf4a78f48e6a5932e4df0 (patch)
tree127a7cde931feebb88f706f6eefc08d3df153698 /library/alloc/src
parent6f270321183c3f86541034e456e4084220d1f0d1 (diff)
parent785ebd9b21b15ab1b90b7e8765b9a5072a08a7e4 (diff)
downloadrust-8201f0ffda9b98f2835cf4a78f48e6a5932e4df0.tar.gz
rust-8201f0ffda9b98f2835cf4a78f48e6a5932e4df0.zip
Rollup merge of #114867 - ttsugriy:ttsugriy-patch-1, r=scottmcm
[nit] Fix a comment typo.
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/str.rs2
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))]