Fix method names in rustdoc
We have a few incorrect method names in the rustdocs for `internals`, fix them up.
This commit is contained in:
parent
7593f1f334
commit
db6b3f1df5
|
@ -112,7 +112,7 @@ impl<'a> DisplayHex for &'a [u8] {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(feature = "alloc")]
|
||||||
#[cfg_attr(docsrs, doc(feature = "alloc"))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
|
||||||
impl<'a> DisplayHex for &'a alloc::vec::Vec<u8> {
|
impl<'a> DisplayHex for &'a alloc::vec::Vec<u8> {
|
||||||
type Display = DisplayByteSlice<'a>;
|
type Display = DisplayByteSlice<'a>;
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ impl<'a> DisplayHex for &'a alloc::vec::Vec<u8> {
|
||||||
|
|
||||||
/// Displays byte slice as hex.
|
/// Displays byte slice as hex.
|
||||||
///
|
///
|
||||||
/// Created by [`<&[u8] as DisplayHex>::display_hex`](DisplayHex::display_hex).
|
/// Created by [`<&[u8] as DisplayHex>::as_hex`](DisplayHex::as_hex).
|
||||||
pub struct DisplayByteSlice<'a> {
|
pub struct DisplayByteSlice<'a> {
|
||||||
// pub because we want to keep lengths in sync
|
// pub because we want to keep lengths in sync
|
||||||
pub(crate) bytes: &'a [u8],
|
pub(crate) bytes: &'a [u8],
|
||||||
|
@ -166,7 +166,7 @@ impl<'a> fmt::UpperHex for DisplayByteSlice<'a> {
|
||||||
|
|
||||||
/// Displays byte array as hex.
|
/// Displays byte array as hex.
|
||||||
///
|
///
|
||||||
/// Created by [`<&[u8; LEN] as DisplayHex>::display_hex`](DisplayHex::display_hex).
|
/// Created by [`<&[u8; LEN] as DisplayHex>::as_hex`](DisplayHex::as_hex).
|
||||||
pub struct DisplayArray<A: Clone + IntoIterator, B: FixedLenBuf> where A::Item: Borrow<u8> {
|
pub struct DisplayArray<A: Clone + IntoIterator, B: FixedLenBuf> where A::Item: Borrow<u8> {
|
||||||
array: A,
|
array: A,
|
||||||
_buffer_marker: core::marker::PhantomData<B>,
|
_buffer_marker: core::marker::PhantomData<B>,
|
||||||
|
|
Loading…
Reference in New Issue