From a9d0f4a0021e1494272e2c96ac4a38cfd5af9e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 29 Jan 2025 15:16:40 +0100 Subject: [PATCH] Improve english comments Co-authored-by: Louis Dureuil --- crates/milli/src/update/new/channel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/milli/src/update/new/channel.rs b/crates/milli/src/update/new/channel.rs index f74dfb7c5..4fff31a35 100644 --- a/crates/milli/src/update/new/channel.rs +++ b/crates/milli/src/update/new/channel.rs @@ -127,7 +127,7 @@ pub struct WriterBbqueueReceiver<'a> { /// over the bbqueue channel. sent_messages_attempts: Arc, /// The number of times an attempt to send a - /// messages failed and we had to pause for a bit. + /// message failed and we had to pause for a bit. blocking_sent_messages_attempts: Arc, } @@ -710,7 +710,7 @@ where { loop { // An attempt means trying multiple times - // and succeeded to send or not. + // whether is succeeded or not. sent_messages_attempts.fetch_add(1, atomic::Ordering::Relaxed); for _ in 0..10_000 { @@ -737,7 +737,7 @@ where } // We made an attempt to send a message in the - // bbqueue channel but it didn't succeeded. + // bbqueue channel but it didn't succeed. blocking_sent_messages_attempts.fetch_add(1, atomic::Ordering::Relaxed); // We prefer to yield and allow the writing thread