Skip to content

Commit 66897f1

Browse files
authored
Unrolled build for #159196
Rollup merge of #159196 - Wilfred:patch-2, r=jhpratt OnceCell: Improve wording in module docs The "can also not" phrasing was slightly awkward, so rephrase this sentence.
2 parents 470556c + 45b58f3 commit 66897f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/core/src/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
//! [`OnceCell<T>`] is somewhat of a hybrid of `Cell` and `RefCell` that works for values that
6969
//! typically only need to be set once. This means that a reference `&T` can be obtained without
7070
//! moving or copying the inner value (unlike `Cell`) but also without runtime checks (unlike
71-
//! `RefCell`). However, its value can also not be updated once set unless you have a mutable
71+
//! `RefCell`). However, once set, its value cannot be updated unless you have a mutable
7272
//! reference to the `OnceCell`.
7373
//!
7474
//! `OnceCell` provides the following methods:

0 commit comments

Comments
 (0)