Skip to content

Commit 8800b84

Browse files
Fix doc warnings
1 parent 7cb0e80 commit 8800b84

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
@@ -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`](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`] to remove the need for the const-generic:
6262
///
6363
/// ```rust
6464
/// use heapless::{Vec, VecView};
@@ -68,11 +68,11 @@ pub struct VecInner<B: ?Sized + VecDrop> {
6868
/// ```
6969
pub type Vec<T, const N: usize> = VecInner<[MaybeUninit<T>; N]>;
7070

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