Skip to content

Commit

Permalink
fix(bitfield): macro generating broken doc links (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed May 30, 2022
1 parent 7855a55 commit 1920795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitfield/src/bitfield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ macro_rules! bitfield {
///
/// This method panics if `self` does not contain a valid bit
/// pattern for a `T`-typed value, as determined by `T`'s
/// [`mycelium_bitfield::FromBits::try_from_bits`] implementation.
/// `FromBits::try_from_bits` implementation.
$vis fn get<T>(self, field: $crate::bitfield! { @t $T, T, Self }) -> T
where
T: $crate::FromBits<$T>,
Expand All @@ -313,7 +313,7 @@ macro_rules! bitfield {
/// bits in `src`
/// - `Err(T::Error)` if `src` does not contain a valid bit
/// pattern for a `T`-typed value, as determined by `T`'s
/// [`mycelium_bitfield::FromBits::try_from_bits`] implementation.
/// [`FromBits::try_from_bits` implementation.
$vis fn try_get<T>(self, field: $crate::bitfield! { @t $T, T, Self }) -> Result<T, T::Error>
where
T: $crate::FromBits<$T>,
Expand Down

0 comments on commit 1920795

Please sign in to comment.