From 8787304425c83cccfb1107bde0b0d82901470d38 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 27 Feb 2025 11:33:19 +1100 Subject: [PATCH] units: Improve code comment on macros We have two macros that are hidden because they are code de-duplication tools. However the output they produce is, and has to be, stable so that we can use them in `units` and `primitives` without inadvertently breaking semver in `primitives`. --- units/src/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/units/src/parse.rs b/units/src/parse.rs index 6d4b59ec1..3e6e34a52 100644 --- a/units/src/parse.rs +++ b/units/src/parse.rs @@ -149,7 +149,7 @@ fn int + Into>(s: S) -> Result { impl $crate::_export::_core::str::FromStr for $to { @@ -214,7 +214,7 @@ macro_rules! impl_parse_str_from_int_infallible { /// /// All functions use the error returned by `$inner_fn`. #[macro_export] -#[doc(hidden)] // This is an 'internal' macro that should not be used outside of the `rust-bitcoin` crate. +#[doc(hidden)] // This macro is stable but is considered internal to the `rust-bitcoin` repository. macro_rules! impl_parse_str { ($to:ty, $err:ty, $inner_fn:expr) => { $crate::impl_tryfrom_str!(&str, $to, $err, $inner_fn);