Skip to content

Commit 5e826e9

Browse files
Fix doc warnings
1 parent 19b6f6f commit 5e826e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vec.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub struct VecInner<B: ?Sized + VecDrop> {
6565
/// assert_eq!(*vec, [7, 1, 2, 3]);
6666
/// ```
6767
///
68-
/// In some cases, the const-generic might be cumbersome. `Vec` can coerce into a [`VecView`](VecView) to remove the need for the const-generic:
68+
/// In some cases, the const-generic might be cumbersome. `Vec` can coerce into a [`VecView`] to remove the need for the const-generic:
6969
///
7070
/// ```rust
7171
/// use heapless::{Vec, VecView};
@@ -75,11 +75,11 @@ pub struct VecInner<B: ?Sized + VecDrop> {
7575
/// ```
7676
pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
7777

78-
/// A [`Vec`](Vec) with dynamic capacity
78+
/// A [`Vec`] with dynamic capacity
7979
///
80-
/// [`Vec`](Vec) coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
80+
/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
8181
///
82-
/// Unlike [`Vec`](Vec), `VecView` does not have an `N` const-generic parameter.
82+
/// Unlike [`Vec`], `VecView` does not have an `N` const-generic parameter.
8383
/// This has the ergonomic advantages of making it possible to use functions without needing to know at
8484
/// compile-time the size of the buffers used, for example for use in `dyn` traits.
8585
///

0 commit comments

Comments
 (0)