Skip to content

Commit 809b0a4

Browse files
Fix docs
1 parent e494dcf commit 809b0a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vec.rs

Lines changed: 3 additions & 3 deletions
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`][] to remove the need for the const-generic:
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:
6969
///
7070
/// ```rust
7171
/// use heapless::{Vec, VecView};
@@ -77,9 +77,9 @@ pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
7777

7878
/// A Vec with dynamic capacity
7979
///
80-
/// [`Vec`]() coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
80+
/// [`Vec`](Vec) coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
8181
///
82-
/// Unlike [`Vec`](), `VecView` does not have an `N` const-generic parameter.
82+
/// Unlike [`Vec`](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)