Fix typos

This commit is contained in:
Sosthène Guédon 2024-01-23 20:33:27 +01:00
parent 1c399dbdbf
commit 24fedd3b8c
No known key found for this signature in database
GPG Key ID: 36DA48A4C827B354
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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};