about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorChristian Poveda <christianpoveda@protonmail.com>2018-02-24 18:06:01 -0500
committerChristian Poveda <christianpoveda@protonmail.com>2018-02-24 18:06:01 -0500
commit7ded7f764c2d590d0c3ad71b9ffbbcfaec2174fb (patch)
tree16d4da02233dc64687bf16ff2e9f200f03b15061 /src
parentce3ad263ff085ac15016430de5f4abb154427433 (diff)
downloadrust-7ded7f764c2d590d0c3ad71b9ffbbcfaec2174fb.tar.gz
rust-7ded7f764c2d590d0c3ad71b9ffbbcfaec2174fb.zip
corrected grammar errors
Diffstat (limited to 'src')
-rw-r--r--src/libcore/cell.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index 91074c18d77..858bdcbb721 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -10,17 +10,17 @@
 
 //! Shareable mutable containers.
 //!
-//! Rust memory safety is based on this rule: Given an object `T`, is only possible to
+//! Rust memory safety is based on this rule: Given an object `T`, it is only possible to
 //! have one of the following:
 //!
-//! - Having several inmutable references (`&T`) to the object (also know as Aliasing).
+//! - Having several immutable references (`&T`) to the object (also know as Aliasing).
 //! - Having one mutable reference (`&mut T`) to the object (also know as Mutability).
 //!
 //! This is enforced by the Rust compiler. However, there are situations where this rule is not
-//! flexible enough. Sometimes is required to have multiple references to an object and yet
+//! flexible enough. Sometimes it is required to have multiple references to an object and yet
 //! mutate it.
 //!
-//! Shareable mutable containers exist to permit mutability in presence of aliasing in a
+//! Shareable mutable containers exist to permit mutability in the presence of aliasing in a
 //! controlled manner. Both `Cell<T>` and `RefCell<T>` allows to do this in a single threaded
 //! way. However, neither `Cell<T>` nor `RefCell<T>` are thread safe (they do not implement
 //! `Sync`), if you need to do Aliasing and Mutation between multiple threads is possible to use