libs: doc comments

This commit is contained in:
Alexander Regueiro
2019-02-09 22:16:58 +00:00
parent b87363e763
commit 99ed06eb88
102 changed files with 394 additions and 387 deletions
+2 -4
View File
@@ -963,7 +963,7 @@ pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocEr
/// Does nothing if the capacity is already sufficient.
///
/// Note that the allocator may give the collection more space than it
/// requests. Therefore capacity can not be relied upon to be precisely
/// requests. Therefore, capacity can not be relied upon to be precisely
/// minimal. Prefer `reserve` if future insertions are expected.
///
/// # Errors
@@ -1377,9 +1377,7 @@ pub fn len(&self) -> usize {
self.vec.len()
}
/// Returns `true` if this `String` has a length of zero.
///
/// Returns `false` otherwise.
/// Returns `true` if this `String` has a length of zero, and `false` otherwise.
///
/// # Examples
///