Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7f12f02

Browse files
authoredNov 12, 2024
Rollup merge of rust-lang#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...".
2 parents 300a266 + 2d676d4 commit 7f12f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/src/cell.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//! Rust memory safety is based on this rule: Given an object `T`, it is only possible to
44
//! have one of the following:
55
//!
6-
//! - Having several immutable references (`&T`) to the object (also known as **aliasing**).
7-
//! - Having one mutable reference (`&mut T`) to the object (also known as **mutability**).
6+
//! - Several immutable references (`&T`) to the object (also known as **aliasing**).
7+
//! - One mutable reference (`&mut T`) to the object (also known as **mutability**).
88
//!
99
//! This is enforced by the Rust compiler. However, there are situations where this rule is not
1010
//! flexible enough. Sometimes it is required to have multiple references to an object and yet

0 commit comments

Comments
 (0)
Failed to load comments.