From 45b58f33a16959f751cabaf409cf0c4c0fb1a6b8 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 12 Jul 2026 14:15:59 -0700 Subject: [PATCH] OnceCell: Improve wording in module docs The "can also not" phrasing was slightly awkward, so rephrase this sentence. --- library/core/src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 9b2015ddc7101..1b8ec2a91478a 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -68,7 +68,7 @@ //! [`OnceCell`] is somewhat of a hybrid of `Cell` and `RefCell` that works for values that //! typically only need to be set once. This means that a reference `&T` can be obtained without //! moving or copying the inner value (unlike `Cell`) but also without runtime checks (unlike -//! `RefCell`). However, its value can also not be updated once set unless you have a mutable +//! `RefCell`). However, once set, its value cannot be updated unless you have a mutable //! reference to the `OnceCell`. //! //! `OnceCell` provides the following methods: