chore: fix incorrect reference in comments
What changed, and why it matters
This commit only corrects two documentation comments that pointed to the wrong module name. It changes no executable code, so it cannot affect program behavior or security.
No security action needed. Treat as a normal documentation fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch updates doc comments in units/src/fee_rate/serde.rs for the as_sat_per_kwu_floor module and its opt submodule. The comments previously told users to reference fee_rate::serde::as_sat_per_kwu and fee_rate::serde::as_sat_per_kwu::opt, which are different modules. They now correctly reference as_sat_per_kwu_floor and as_sat_per_kwu_floor::opt. No Rust code, types, serialization logic, or public APIs were modified.
Changed components
units/src/fee_rate/serde.rs (documentation comments only)Inspect captured patch +2 / −2
diff --git a/units/src/fee_rate/serde.rs b/units/src/fee_rate/serde.rs
index 61390976..f778a732 100644
--- a/units/src/fee_rate/serde.rs
+++ b/units/src/fee_rate/serde.rs
@@ -29,7 +29,7 @@ use core::fmt;
pub mod as_sat_per_kwu_floor {
//! Serialize and deserialize [`FeeRate`] denominated in satoshis per 1000 weight units.
//!
- //! Use with `#[serde(with = "fee_rate::serde::as_sat_per_kwu")]`.
+ //! Use with `#[serde(with = "fee_rate::serde::as_sat_per_kwu_floor")]`.
use serde::{Deserialize, Deserializer, Serialize, Serializer};
@@ -51,7 +51,7 @@ pub mod as_sat_per_kwu_floor {
pub mod opt {
//! Serialize and deserialize [`Option<FeeRate>`] denominated in satoshis per 1000 weight units.
//!
- //! Use with `#[serde(with = "fee_rate::serde::as_sat_per_kwu::opt")]`.
+ //! Use with `#[serde(with = "fee_rate::serde::as_sat_per_kwu_floor::opt")]`.
use core::fmt;
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.