about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-12 08:07:18 +0100
committerGitHub <noreply@github.com>2024-11-12 08:07:18 +0100
commit87d5faf5b6a06559a3ea3aecc57f23113020a397 (patch)
tree10e2b47ab17d0db8979c9136b41b42961755357f
parent72c62688d1343970272bc8a4ff982a7cb31211b0 (diff)
parent0d3a58e576089e9440280394e2964d2ba63d6b4e (diff)
downloadrust-87d5faf5b6a06559a3ea3aecc57f23113020a397.tar.gz
rust-87d5faf5b6a06559a3ea3aecc57f23113020a397.zip
Rollup merge of #132914 - rcorre:cell-grammar, r=tgross35
Update grammar in std::cell docs.

Using "having" in both the leading sentence and the bullets is unnecessary.
It makes it read as "it is only possible to have having several immutable...".
-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 ab76cd7a6be..1a461987c76 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -3,8 +3,8 @@
 //! Rust memory safety is based on this rule: Given an object `T`, it is only possible to
 //! have one of the following:
 //!
-//! - Having several immutable references (`&T`) to the object (also known as **aliasing**).
-//! - Having one mutable reference (`&mut T`) to the object (also known as **mutability**).
+//! - Several immutable references (`&T`) to the object (also known as **aliasing**).
+//! - One mutable reference (`&mut T`) to the object (also known as **mutability**).
 //!
 //! This is enforced by the Rust compiler. However, there are situations where this rule is not
 //! flexible enough. Sometimes it is required to have multiple references to an object and yet