diff --git a/src/array.rs b/src/array.rs index d5b45e2..1246929 100644 --- a/src/array.rs +++ b/src/array.rs @@ -1,7 +1,7 @@ /// Trait for fixed size arrays. pub unsafe trait Array { - /// The array's element type + /// The array’s element type type Item; #[doc(hidden)] /// The smallest index type that indexes the array. diff --git a/src/array_string.rs b/src/array_string.rs index 54f2d9e..0dc0974 100644 --- a/src/array_string.rs +++ b/src/array_string.rs @@ -250,7 +250,7 @@ impl> ArrayString { /// 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. /// /// ***Panics*** if `new_len` does not lie on a `char` boundary. @@ -283,7 +283,7 @@ impl> ArrayString { /// 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> ArrayString { } } - /// Set the strings's length. + /// Set the strings’s 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> ArrayString { 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] { slice::from_raw_parts_mut(self.xs.as_mut_ptr(), self.capacity()) } diff --git a/src/lib.rs b/src/lib.rs index 286dfd9..f9efe3b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -445,7 +445,7 @@ impl ArrayVec { /// 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 vector’s current length this has no /// effect. /// /// ``` @@ -500,7 +500,7 @@ impl ArrayVec { } } - /// 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 /// number of “valid” elements in the vector. Use with care.