Skip to content

Commit 842e169

Browse files
authored
chore: improve code comments clarity (#212)
Signed-off-by: xibeiyoumian <xibeiyoumian@outlook.com>
1 parent a6db082 commit 842e169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arrayvec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ macro_rules! array_vec {
5757
/// * `ArrayVec` has a variable length, as you add and remove elements. Attempts
5858
/// to fill the vec beyond its capacity will cause a panic.
5959
/// * All of the vec's array slots are always initialized in terms of Rust's
60-
/// memory model. When you remove a element from a location, the old value at
60+
/// memory model. When you remove an element from a location, the old value at
6161
/// that location is replaced with the type's default value.
6262
///
6363
/// The overall API of this type is intended to, as much as possible, emulate
@@ -87,7 +87,7 @@ macro_rules! array_vec {
8787
/// assert_eq!(some_ints, more_ints);
8888
/// ```
8989
///
90-
/// If you have an array and want the _whole thing_ so count as being "in" the
90+
/// If you have an array and want the _whole thing_ to count as being "in" the
9191
/// new `ArrayVec` you can use one of the `from` implementations. If you want
9292
/// _part of_ the array then you can use
9393
/// [`from_array_len`](ArrayVec::from_array_len):

0 commit comments

Comments
 (0)