Skip to content

Commit 302b599

Browse files
Fix typos
1 parent 33d7754 commit 302b599

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- Added `is_full`, `recent_index`, `oldest`, and `oldest_index` to `HistoryBuffer`
1515
- Added infallible conversions from arrays to `Vec`.
1616
- Added `Vec::spare_capacity_mut`.
17-
- Added `VecView`, the `!Sized` version of `Vec`
17+
- Added `VecView`, the `!Sized` version of `Vec`.
1818

1919
### Changed
2020

src/vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
8080

8181
/// A [`Vec`] with dynamic capacity
8282
///
83-
/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
83+
/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning it can only ever be used by reference.
8484
///
8585
/// Unlike [`Vec`], `VecView` does not have an `N` const-generic parameter.
86-
/// This has the ergonomic advantages of making it possible to use functions without needing to know at
86+
/// This has the ergonomic advantage of making it possible to use functions without needing to know at
8787
/// compile-time the size of the buffers used, for example for use in `dyn` traits.
8888
///
89-
/// `VecView<T>` is to `Vec<T, N>` what `[T]` is to `[T; N]`
89+
/// `VecView<T>` is to `Vec<T, N>` what `[T]` is to `[T; N]`.
9090
///
9191
/// ```rust
9292
/// use heapless::{Vec, VecView};

0 commit comments

Comments
 (0)