about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-07 19:55:32 +0200
committerGitHub <noreply@github.com>2025-07-07 19:55:32 +0200
commit2554c424ef0505d0e08d56be8630e6c4045a88c8 (patch)
tree65f2c63bb704e3df6313a09b9d3e70f2826eb294 /library/std
parent00a44181588ef976a9d1455ba4efc038acce2ee0 (diff)
parenta0111ec7a1f895bd4517b8530596d408f1b58214 (diff)
downloadrust-2554c424ef0505d0e08d56be8630e6c4045a88c8.tar.gz
rust-2554c424ef0505d0e08d56be8630e6c4045a88c8.zip
Rollup merge of #143340 - nabijaczleweli:awhile, r=mati865
awhile -> a while where appropriate
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/sync/mpmc/mod.rs2
-rw-r--r--library/std/src/sync/mpsc.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sync/mpmc/mod.rs b/library/std/src/sync/mpmc/mod.rs
index 8712332dd27..673033034ef 100644
--- a/library/std/src/sync/mpmc/mod.rs
+++ b/library/std/src/sync/mpmc/mod.rs
@@ -187,7 +187,7 @@ use crate::time::{Duration, Instant};
 ///     sender.send(expensive_computation()).unwrap();
 /// });
 ///
-/// // Do some useful work for awhile
+/// // Do some useful work for a while
 ///
 /// // Let's see what that answer was
 /// println!("{:?}", receiver.recv().unwrap());
diff --git a/library/std/src/sync/mpsc.rs b/library/std/src/sync/mpsc.rs
index f942937c14d..41d1dd3ce67 100644
--- a/library/std/src/sync/mpsc.rs
+++ b/library/std/src/sync/mpsc.rs
@@ -509,7 +509,7 @@ pub enum TrySendError<T> {
 ///     sender.send(expensive_computation()).unwrap();
 /// });
 ///
-/// // Do some useful work for awhile
+/// // Do some useful work for a while
 ///
 /// // Let's see what that answer was
 /// println!("{:?}", receiver.recv().unwrap());