about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-20 21:45:06 +0800
committerGitHub <noreply@github.com>2025-01-20 21:45:06 +0800
commitecfb55762ca4e2be1b0f900c3d0e9e166cd68f41 (patch)
tree84ee03f864482ebe53496a4cf69835e9c2072422
parent3e26673b29d39b687896655752bd1e0a62e9bb3d (diff)
parent8ba0d2db1819acc5570579301f0557a53938f890 (diff)
downloadrust-ecfb55762ca4e2be1b0f900c3d0e9e166cd68f41.tar.gz
rust-ecfb55762ca4e2be1b0f900c3d0e9e166cd68f41.zip
Rollup merge of #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.
-rw-r--r--library/core/src/cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs
index 306d565a77e..20187e478aa 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -22,8 +22,8 @@
 //! (mutable via `&T`), in contrast with typical Rust types that exhibit 'inherited mutability'
 //! (mutable only via `&mut T`).
 //!
-//! Cell types come in three flavors: `Cell<T>`, `RefCell<T>`, and `OnceCell<T>`. Each provides
-//! a different way of providing safe interior mutability.
+//! Cell types come in four flavors: `Cell<T>`, `RefCell<T>`, `OnceCell<T>`, and `LazyCell<T>`.
+//! Each provides a different way of providing safe interior mutability.
 //!
 //! ## `Cell<T>`
 //!