DOC: Minor fixes in docs, for ' → ’

This commit is contained in:
bluss
2017-10-27 22:54:46 +02:00
parent db616eb9c5
commit a2e3fcea3f
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/// Trait for fixed size arrays.
pub unsafe trait Array {
/// The array's element type
/// The arrays element type
type Item;
#[doc(hidden)]
/// The smallest index type that indexes the array.
+4 -4
View File
@@ -250,7 +250,7 @@ impl<A: Array<Item=u8>> ArrayString<A> {
/// Shortens this `ArrayString` to the specified length.
///
/// If `new_len` is greater than the string's current length, this has no
/// If `new_len` is greater than the strings current length, this has no
/// effect.
///
/// ***Panics*** if `new_len` does not lie on a `char` boundary.
@@ -283,7 +283,7 @@ impl<A: Array<Item=u8>> ArrayString<A> {
/// This is an `O(n)` operation, as it requires copying every element in the
/// array.
///
/// ***Panics*** if `idx` is larger than or equal to the `ArrayString`'s length,
/// ***Panics*** if `idx` is larger than or equal to the `ArrayString`s length,
/// or if it does not lie on a `char` boundary.
///
/// ```
@@ -320,7 +320,7 @@ impl<A: Array<Item=u8>> ArrayString<A> {
}
}
/// Set the strings's length.
/// Set the stringss length.
///
/// This function is `unsafe` because it changes the notion of the
/// number of “valid” bytes in the string. Use with care.
@@ -338,7 +338,7 @@ impl<A: Array<Item=u8>> ArrayString<A> {
self
}
/// Return a mutable slice of the whole string's buffer
/// Return a mutable slice of the whole strings buffer
unsafe fn raw_mut_bytes(&mut self) -> &mut [u8] {
slice::from_raw_parts_mut(self.xs.as_mut_ptr(), self.capacity())
}
+2 -2
View File
@@ -445,7 +445,7 @@ impl<A: Array> ArrayVec<A> {
/// Shortens the vector, keeping the first `len` elements and dropping
/// the rest.
///
/// If `len` is greater than the vector's current length this has no
/// If `len` is greater than the vectors current length this has no
/// effect.
///
/// ```
@@ -500,7 +500,7 @@ impl<A: Array> ArrayVec<A> {
}
}
/// Set the vector's length without dropping or moving out elements
/// Set the vectors length without dropping or moving out elements
///
/// This method is `unsafe` because it changes the notion of the
/// number of “valid” elements in the vector. Use with care.