mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 23:04:40 +00:00
Fix docs
This commit is contained in:
parent
de72f43eb3
commit
113c3cc568
@ -65,7 +65,7 @@ pub struct VecInner<B: ?Sized + VecDrop> {
|
|||||||
/// assert_eq!(*vec, [7, 1, 2, 3]);
|
/// assert_eq!(*vec, [7, 1, 2, 3]);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// In some cases, the const-generic might be cumbersome. `Vec` can coerce into a [`VecView`][] to remove the need for the const-generic:
|
/// In some cases, the const-generic might be cumbersome. `Vec` can coerce into a [`VecView`](VecView) to remove the need for the const-generic:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use heapless::{Vec, VecView};
|
/// use heapless::{Vec, VecView};
|
||||||
@ -77,9 +77,9 @@ pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
|
|||||||
|
|
||||||
/// A Vec with dynamic capacity
|
/// A Vec with dynamic capacity
|
||||||
///
|
///
|
||||||
/// [`Vec`]() coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
|
/// [`Vec`](Vec) coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
|
||||||
///
|
///
|
||||||
/// Unlike [`Vec`](), `VecView` does not have an `N` const-generic parameter.
|
/// Unlike [`Vec`](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 advantages 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.
|
/// compile-time the size of the buffers used, for example for use in `dyn` traits.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user