mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 14:54:30 +00:00
Fix typos
This commit is contained in:
parent
1c399dbdbf
commit
24fedd3b8c
@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
- Added `Vec::spare_capacity_mut`.
|
||||
- Added `Extend` impls for `Deque`.
|
||||
- Added `Deque::make_contiguous`.
|
||||
- Added `VecView`, the `!Sized` version of `Vec`
|
||||
- Added `VecView`, the `!Sized` version of `Vec`.
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -80,13 +80,13 @@ pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
|
||||
|
||||
/// A [`Vec`] with dynamic capacity
|
||||
///
|
||||
/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
|
||||
/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning it can only ever be used by reference.
|
||||
///
|
||||
/// Unlike [`Vec`], `VecView` does not have an `N` const-generic parameter.
|
||||
/// This has the ergonomic advantages of making it possible to use functions without needing to know at
|
||||
/// This has the ergonomic advantage of making it possible to use functions without needing to know at
|
||||
/// compile-time the size of the buffers used, for example for use in `dyn` traits.
|
||||
///
|
||||
/// `VecView<T>` is to `Vec<T, N>` what `[T]` is to `[T; N]`
|
||||
/// `VecView<T>` is to `Vec<T, N>` what `[T]` is to `[T; N]`.
|
||||
///
|
||||
/// ```rust
|
||||
/// use heapless::{Vec, VecView};
|
||||
|
Loading…
x
Reference in New Issue
Block a user