Skip to content

Commit 24fedd3

Browse files
Fix typos
1 parent 1c399db commit 24fedd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1616
- Added `Vec::spare_capacity_mut`.
1717
- Added `Extend` impls for `Deque`.
1818
- Added `Deque::make_contiguous`.
19-
- Added `VecView`, the `!Sized` version of `Vec`
19+
- Added `VecView`, the `!Sized` version of `Vec`.
2020

2121
### Changed
2222

src/vec.rs

+3-3
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)