DOC: Minor fixes in docs, for ' → ’
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/// Trait for fixed size arrays.
|
/// Trait for fixed size arrays.
|
||||||
pub unsafe trait Array {
|
pub unsafe trait Array {
|
||||||
/// The array's element type
|
/// The array’s element type
|
||||||
type Item;
|
type Item;
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
/// The smallest index type that indexes the array.
|
/// The smallest index type that indexes the array.
|
||||||
|
|||||||
+4
-4
@@ -250,7 +250,7 @@ impl<A: Array<Item=u8>> ArrayString<A> {
|
|||||||
|
|
||||||
/// Shortens this `ArrayString` to the specified length.
|
/// 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 string’s current length, this has no
|
||||||
/// effect.
|
/// effect.
|
||||||
///
|
///
|
||||||
/// ***Panics*** if `new_len` does not lie on a `char` boundary.
|
/// ***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
|
/// This is an `O(n)` operation, as it requires copying every element in the
|
||||||
/// array.
|
/// 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.
|
/// 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 strings’s length.
|
||||||
///
|
///
|
||||||
/// This function is `unsafe` because it changes the notion of the
|
/// This function is `unsafe` because it changes the notion of the
|
||||||
/// number of “valid” bytes in the string. Use with care.
|
/// number of “valid” bytes in the string. Use with care.
|
||||||
@@ -338,7 +338,7 @@ impl<A: Array<Item=u8>> ArrayString<A> {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return a mutable slice of the whole string's buffer
|
/// Return a mutable slice of the whole string’s buffer
|
||||||
unsafe fn raw_mut_bytes(&mut self) -> &mut [u8] {
|
unsafe fn raw_mut_bytes(&mut self) -> &mut [u8] {
|
||||||
slice::from_raw_parts_mut(self.xs.as_mut_ptr(), self.capacity())
|
slice::from_raw_parts_mut(self.xs.as_mut_ptr(), self.capacity())
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -445,7 +445,7 @@ impl<A: Array> ArrayVec<A> {
|
|||||||
/// Shortens the vector, keeping the first `len` elements and dropping
|
/// Shortens the vector, keeping the first `len` elements and dropping
|
||||||
/// the rest.
|
/// the rest.
|
||||||
///
|
///
|
||||||
/// If `len` is greater than the vector's current length this has no
|
/// If `len` is greater than the vector’s current length this has no
|
||||||
/// effect.
|
/// effect.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
@@ -500,7 +500,7 @@ impl<A: Array> ArrayVec<A> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the vector's length without dropping or moving out elements
|
/// Set the vector’s length without dropping or moving out elements
|
||||||
///
|
///
|
||||||
/// This method is `unsafe` because it changes the notion of the
|
/// This method is `unsafe` because it changes the notion of the
|
||||||
/// number of “valid” elements in the vector. Use with care.
|
/// number of “valid” elements in the vector. Use with care.
|
||||||
|
|||||||
Reference in New Issue
Block a user