Skip to content

Commit ecfb557

Browse files
authored
Rollup merge of rust-lang#135762 - TomFryersMidsummer:patch-1, r=joboet
Correct counting to four in cell module docs It could also be argued that `OnceCell<T>` and `LazyCell<T>` don't really provide safe interior mutability in different ways. But it's a vague enough claim that I'm not sure it's worth being pedantic about.
2 parents 3e26673 + 8ba0d2d commit ecfb557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/cell.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
//! (mutable via `&T`), in contrast with typical Rust types that exhibit 'inherited mutability'
2323
//! (mutable only via `&mut T`).
2424
//!
25-
//! Cell types come in three flavors: `Cell<T>`, `RefCell<T>`, and `OnceCell<T>`. Each provides
26-
//! a different way of providing safe interior mutability.
25+
//! Cell types come in four flavors: `Cell<T>`, `RefCell<T>`, `OnceCell<T>`, and `LazyCell<T>`.
26+
//! Each provides a different way of providing safe interior mutability.
2727
//!
2828
//! ## `Cell<T>`
2929
//!

0 commit comments

Comments
 (0)