about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-08-17 15:15:17 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-08-17 15:42:05 +0200
commitba0328327c8ce94f7bf380223d655c70de584e93 (patch)
tree3c58e7c49b747ac9b87908d6be65fccc2e076000 /src/liballoc
parent7a641f7c516ac666c72bf9edfbec8648aa0160c7 (diff)
Doc nits
Co-Authored-By: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs8
-rw-r--r--src/liballoc/rc.rs10
-rw-r--r--src/liballoc/sync.rs10
3 files changed, 14 insertions, 14 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index e315b9f3417..c61e3183409 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -123,7 +123,7 @@ impl<T> Box<T> {
         box x
     }
 
-    /// Construct a new box with uninitialized contents.
+    /// Constructs a new box with uninitialized contents.
     ///
     /// # Examples
     ///
@@ -161,7 +161,7 @@ impl<T> Box<T> {
 }
 
 impl<T> Box<[T]> {
-    /// Construct a new boxed slice with uninitialized contents.
+    /// Constructs a new boxed slice with uninitialized contents.
     ///
     /// # Examples
     ///
@@ -192,7 +192,7 @@ impl<T> Box<[T]> {
 }
 
 impl<T> Box<mem::MaybeUninit<T>> {
-    /// Convert to `Box<T>`.
+    /// Converts to `Box<T>`.
     ///
     /// # Safety
     ///
@@ -228,7 +228,7 @@ impl<T> Box<mem::MaybeUninit<T>> {
 }
 
 impl<T> Box<[mem::MaybeUninit<T>]> {
-    /// Convert to `Box<[T]>`.
+    /// Converts to `Box<[T]>`.
     ///
     /// # Safety
     ///
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 1509afa4889..7183336ba53 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -327,7 +327,7 @@ impl<T> Rc<T> {
         }))
     }
 
-    /// Construct a new Rc with uninitialized contents.
+    /// Constructs a new `Rc` with uninitialized contents.
     ///
     /// # Examples
     ///
@@ -409,7 +409,7 @@ impl<T> Rc<T> {
 }
 
 impl<T> Rc<[T]> {
-    /// Construct a new reference-counted slice with uninitialized contents.
+    /// Constructs a new reference-counted slice with uninitialized contents.
     ///
     /// # Examples
     ///
@@ -441,7 +441,7 @@ impl<T> Rc<[T]> {
 }
 
 impl<T> Rc<mem::MaybeUninit<T>> {
-    /// Convert to `Rc<T>`.
+    /// Converts to `Rc<T>`.
     ///
     /// # Safety
     ///
@@ -480,7 +480,7 @@ impl<T> Rc<mem::MaybeUninit<T>> {
 }
 
 impl<T> Rc<[mem::MaybeUninit<T>]> {
-    /// Convert to `Rc<[T]>`.
+    /// Converts to `Rc<[T]>`.
     ///
     /// # Safety
     ///
@@ -721,7 +721,7 @@ impl<T: ?Sized> Rc<T> {
     ///
     /// Any other `Rc` or [`Weak`] pointers to the same value must not be dereferenced
     /// for the duration of the returned borrow.
-    /// This is trivially the case if no such pointer exist,
+    /// This is trivially the case if no such pointers exist,
     /// for example immediately after `Rc::new`.
     ///
     /// # Examples
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs
index 078ddc27da9..ffab842c769 100644
--- a/src/liballoc/sync.rs
+++ b/src/liballoc/sync.rs
@@ -311,7 +311,7 @@ impl<T> Arc<T> {
         Self::from_inner(Box::into_raw_non_null(x))
     }
 
-    /// Construct a Arc box with uninitialized contents.
+    /// Constructs a new `Arc` with uninitialized contents.
     ///
     /// # Examples
     ///
@@ -393,7 +393,7 @@ impl<T> Arc<T> {
 }
 
 impl<T> Arc<[T]> {
-    /// Construct a new reference-counted slice with uninitialized contents.
+    /// Constructs a new reference-counted slice with uninitialized contents.
     ///
     /// # Examples
     ///
@@ -425,7 +425,7 @@ impl<T> Arc<[T]> {
 }
 
 impl<T> Arc<mem::MaybeUninit<T>> {
-    /// Convert to `Arc<T>`.
+    /// Converts to `Arc<T>`.
     ///
     /// # Safety
     ///
@@ -464,7 +464,7 @@ impl<T> Arc<mem::MaybeUninit<T>> {
 }
 
 impl<T> Arc<[mem::MaybeUninit<T>]> {
-    /// Convert to `Arc<[T]>`.
+    /// Converts to `Arc<[T]>`.
     ///
     /// # Safety
     ///
@@ -1106,7 +1106,7 @@ impl<T: ?Sized> Arc<T> {
     ///
     /// Any other `Arc` or [`Weak`] pointers to the same value must not be dereferenced
     /// for the duration of the returned borrow.
-    /// This is trivially the case if no such pointer exist,
+    /// This is trivially the case if no such pointers exist,
     /// for example immediately after `Arc::new`.
     ///
     /// # Examples