]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/binary_heap.rs
Various fixes to wording consistency in the docs
[rust.git] / src / libcollections / binary_heap.rs
index 519117ff9e5196ec1a686f5c4e2513c49d9d8707..efa96ca468e0143e23a6e0ef73dd4e6d6979a191 100644 (file)
@@ -930,13 +930,13 @@ fn pos(&self) -> usize {
         self.pos
     }
 
-    /// Return a reference to the element removed
+    /// Returns a reference to the element removed.
     #[inline]
     fn element(&self) -> &T {
         self.elt.as_ref().unwrap()
     }
 
-    /// Return a reference to the element at `index`.
+    /// Returns a reference to the element at `index`.
     ///
     /// Unsafe because index must be within the data slice and not equal to pos.
     #[inline]