Adjust docs for impl_parse_str_from_int_infallible macro
What changed, and why it matters
This commit is a one-line documentation fix inside a non-public Rust macro. It corrects the description of a macro parameter from 'err' to 'inner' so the internal comments match the actual code. There is no code behavior change, no security fix, and no user-facing effect.
No security action needed. Treat as a normal documentation maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates a doc comment for the internal impl_parse_str_from_int_infallible! macro in units/src/parse_int.rs. The parameter documentation was stale: it listed err (the error type returned by the inner function) when the macro actually takes inner (the inner integer type implementing the Integer trait). No executable code, type signatures, or public API changed.
Changed components
units/src/parse_int.rs (internal macro documentation only)Inspect captured patch +1 / −1
diff --git a/units/src/parse_int.rs b/units/src/parse_int.rs
index aa5fa0a3..40c7b349 100644
--- a/units/src/parse_int.rs
+++ b/units/src/parse_int.rs
@@ -104,7 +104,7 @@ fn int<T: Integer, S: AsRef<str> + Into<InputString>>(s: S) -> Result<T, ParseIn
/// # Parameters
///
/// * `to` - the type converted to e.g., `impl From<&str> for $to`.
-/// * `err` - the error type returned by `$inner_fn` (implies returned by `FromStr` and `TryFrom`).
+/// * `inner` - the inner integer type to be provided to `fn`. Must implement [`Integer`].
/// * `fn`: the infallible conversion function to call to convert from an integer.
///
/// # Errors
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.