Skip to content

Commit 243fd4b

Browse files
committed
DOC: fix some broken links
1 parent 94da760 commit 243fd4b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl<H, T> HeaderVec<H, T> {
116116

117117
/// Creates a new `HeaderVec` with the given header from owned elements.
118118
/// This functions consumes elements from a `IntoIterator<Item = T>` and creates
119-
/// a `HeaderVec` from these. See [`from_header_slice()`] which creates a `HeaderVec`
119+
/// a `HeaderVec` from these. See [`HeaderVec::from_header_slice()`] which creates a `HeaderVec`
120120
/// by cloning elements from a slice.
121121
///
122122
/// # Example
@@ -196,7 +196,7 @@ impl<H, T> HeaderVec<H, T> {
196196
self.len() == 0
197197
}
198198

199-
/// Check whenever a `HeaderVec` is empty. see [`len_strict()`] about the exactness guarantees.
199+
/// Check whenever a `HeaderVec` is empty. see [`HeaderVec::len_strict()`] about the exactness guarantees.
200200
#[inline(always)]
201201
pub fn is_empty_strict(&self) -> bool {
202202
self.len_strict() == 0
@@ -495,7 +495,7 @@ impl<H, T> HeaderVec<H, T> {
495495
///
496496
/// The returned slice can be used to fill the vector with data (e.g. by
497497
/// reading from a file) before marking the data as initialized using the
498-
/// [`set_len`] method.
498+
/// [`HeaderVec::set_len()`] method.
499499
///
500500
pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] {
501501
unsafe {
@@ -516,7 +516,7 @@ impl<H, T> HeaderVec<H, T> {
516516
///
517517
/// # Safety
518518
///
519-
/// - `new_len` must be less than or equal to [`capacity()`].
519+
/// - `new_len` must be less than or equal to [`HeaderVec::capacity()`].
520520
/// - The elements at `old_len..new_len` must be initialized.
521521
pub unsafe fn set_len(&mut self, new_len: usize) {
522522
debug_assert!(
@@ -682,7 +682,7 @@ impl<H, T> HeaderVec<H, T> {
682682

683683
impl<H, T: Clone> HeaderVec<H, T> {
684684
/// Creates a new `HeaderVec` with the given header from some data.
685-
/// The data cloned from a `AsRef<[T]>`, see [`from_header_elements()`] for
685+
/// The data cloned from a `AsRef<[T]>`, see [`HeaderVec::from_header_elements()`] for
686686
/// constructing a `HeaderVec` from owned elements.
687687
pub fn from_header_slice(header: H, slice: impl AsRef<[T]>) -> Self {
688688
let slice = slice.as_ref();
@@ -725,7 +725,7 @@ impl<H, T: Clone> HeaderVec<H, T> {
725725

726726
#[cfg(feature = "atomic_append")]
727727
/// The atomic append API is only enabled when the `atomic_append` feature flag is set (which
728-
/// is the default). The [`push_atomic()`] or [`extend_from_slice_atomic()`] methods then
728+
/// is the default). The [`HeaderVec::push_atomic()`] or [`HeaderVec::extend_from_slice_atomic()`] methods then
729729
/// become available and some internals using atomic operations.
730730
///
731731
/// This API implements interior-mutable appending to a shared `HeaderVec`. To other threads
@@ -739,7 +739,7 @@ impl<H, T: Clone> HeaderVec<H, T> {
739739
///
740740
/// # Safety
741741
///
742-
/// Only one single thread must try to [`push_atomic()`] or [`extend_from_slice_atomic()`] the
742+
/// Only one single thread must try to [`HeaderVec::push_atomic()`] or [`HeaderVec::extend_from_slice_atomic()`] the
743743
/// `HeaderVec` at at time using the atomic append API's. The actual implementations of this
744744
/// restriction is left to the caller. This can be done by mutexes or guard objects. Or
745745
/// simply by staying single threaded or ensuring somehow else that there is only a single
@@ -951,7 +951,7 @@ impl<H, T> HeaderVec<H, T> {
951951
self.splice_internal(range, replace_with, None)
952952
}
953953

954-
/// Creates a splicing iterator like [`splice()`].
954+
/// Creates a splicing iterator like [`HeaderVec::splice()`].
955955
/// This method must be used when `HeaderVecWeak` are used. It takes a closure that is responsible for
956956
/// updating the weak references as additional parameter.
957957
#[inline]

0 commit comments

Comments
 (0)