From db6b3f1df59ac9ce89cd94f9509262f9d00cb3ba Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 13 Jan 2023 07:44:13 +1100 Subject: [PATCH] Fix method names in rustdoc We have a few incorrect method names in the rustdocs for `internals`, fix them up. --- internals/src/hex/display.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internals/src/hex/display.rs b/internals/src/hex/display.rs index a95c4c72..f4eef37b 100644 --- a/internals/src/hex/display.rs +++ b/internals/src/hex/display.rs @@ -112,7 +112,7 @@ impl<'a> DisplayHex for &'a [u8] { } #[cfg(feature = "alloc")] -#[cfg_attr(docsrs, doc(feature = "alloc"))] +#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] impl<'a> DisplayHex for &'a alloc::vec::Vec { type Display = DisplayByteSlice<'a>; @@ -130,7 +130,7 @@ impl<'a> DisplayHex for &'a alloc::vec::Vec { /// 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 because we want to keep lengths in sync pub(crate) bytes: &'a [u8], @@ -166,7 +166,7 @@ impl<'a> fmt::UpperHex for DisplayByteSlice<'a> { /// 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 where A::Item: Borrow { array: A, _buffer_marker: core::marker::PhantomData,