about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-02-12 19:32:06 +0900
committerGitHub <noreply@github.com>2021-02-12 19:32:06 +0900
commit0b6876cbe7856f8896a7939ddba97f22c1a37492 (patch)
treec94fadc03148620c33dcf0e9c219dac08e7a82f9
parenta118ee2c13cc96ceb27bd5030c1cca1052377604 (diff)
parent2b9ba461116f24cfdbee5f3f4cc71185a7578639 (diff)
downloadrust-0b6876cbe7856f8896a7939ddba97f22c1a37492.tar.gz
rust-0b6876cbe7856f8896a7939ddba97f22c1a37492.zip
Rollup merge of #79983 - petar-dambovaliev:master, r=Dylan-DPC
fix indefinite article in cell.rs
-rw-r--r--library/core/src/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs
index 885422732e4..cb772458e50 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -1622,7 +1622,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
 /// `UnsafeCell<T>` is a type that wraps some `T` and indicates unsafe interior operations on the
 /// wrapped type. Types with an `UnsafeCell<T>` field are considered to have an 'unsafe interior'.
 /// The `UnsafeCell<T>` type is the only legal way to obtain aliasable data that is considered
-/// mutable. In general, transmuting an `&T` type into an `&mut T` is considered undefined behavior.
+/// mutable. In general, transmuting a `&T` type into a `&mut T` is considered undefined behavior.
 ///
 /// If you have a reference `&SomeStruct`, then normally in Rust all fields of `SomeStruct` are
 /// immutable. The compiler makes optimizations based on the knowledge that `&T` is not mutably