Skip to content

Commit 738f072

Browse files
Fix docs
1 parent 67ce762 commit 738f072

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
@@ -58,7 +58,7 @@ pub struct VecInner<B: ?Sized + VecDrop> {
5858
/// assert_eq!(*vec, [7, 1, 2, 3]);
5959
/// ```
6060
///
61-
/// In some cases, the const-generic might be cumbersome. `Vec` can coerce into a [`VecView`][] to remove the need for the const-generic:
61+
/// In some cases, the const-generic might be cumbersome. `Vec` can coerce into a [`VecView`](VecView) to remove the need for the const-generic:
6262
///
6363
/// ```rust
6464
/// use heapless::{Vec, VecView};
@@ -70,9 +70,9 @@ pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
7070

7171
/// A Vec with dynamic capacity
7272
///
73-
/// [`Vec`]() coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
73+
/// [`Vec`](Vec) coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer
7474
///
75-
/// Unlike [`Vec`](), `VecView` does not have an `N` const-generic parameter.
75+
/// Unlike [`Vec`](Vec), `VecView` does not have an `N` const-generic parameter.
7676
/// This has the ergonomic advantages of making it possible to use functions without needing to know at
7777
/// compile-time the size of the buffers used, for example for use in `dyn` traits.
7878
///

0 commit comments

Comments
 (0)