What changed, and why it matters
This commit fixes a single-word typo in a documentation comment. The function takes an Amount type, but the comment incorrectly said 'satoshis'. There is no code change and no security impact.
No action required; this is a non-security documentation typo fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff changes only a doc comment in units/src/fee_rate/mod.rs for FeeRate::from_per_kvb, replacing ‘satoshis per kilo virtual bytes’ with ‘amount per kilo virtual bytes’ to match the parameter type Amount and other constructors. No executable code, API, or behavior is modified.
Changed components
units/src/fee_rate/mod.rs documentation commentInspect captured patch +1 / −1
diff --git a/units/src/fee_rate/mod.rs b/units/src/fee_rate/mod.rs
index 15c7f0b9..7afa7473 100644
--- a/units/src/fee_rate/mod.rs
+++ b/units/src/fee_rate/mod.rs
@@ -104,7 +104,7 @@ impl FeeRate {
Self::from_sat_per_mvb(fee_rate)
}
- /// Constructs a new [`FeeRate`] from satoshis per kilo virtual bytes (1,000 vbytes).
+ /// Constructs a new [`FeeRate`] from amount per kilo virtual bytes (1,000 vbytes).
#[inline]
pub const fn from_per_kvb(rate: Amount) -> NumOpResult<Self> {
// No `map()` in const context.
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.