Skip to content

Commit da69e63

Browse files
committed
units: Use 100 column width in rustdoc comments
We typically use 100 column width for comments, do so but only if it does not make the layout worse.
1 parent 53c6ae4 commit da69e63

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

units/src/fee.rs

+6-8
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,9 @@ impl FeeRate {
141141

142142
/// Checked weight multiplication.
143143
///
144-
/// Computes the absolute fee amount for a given [`Weight`] at this fee rate.
145-
/// When the resulting fee is a non-integer amount, the amount is rounded up,
146-
/// ensuring that the transaction fee is enough instead of falling short if
147-
/// rounded down.
144+
/// Computes the absolute fee amount for a given [`Weight`] at this fee rate. When the resulting
145+
/// fee is a non-integer amount, the amount is rounded up, ensuring that the transaction fee is
146+
/// enough instead of falling short if rounded down.
148147
///
149148
/// Returns [`None`] if overflow occurred.
150149
#[must_use]
@@ -198,10 +197,9 @@ crate::internal_macros::impl_op_for_references! {
198197
impl Weight {
199198
/// Checked fee rate multiplication.
200199
///
201-
/// Computes the absolute fee amount for a given [`FeeRate`] at this weight.
202-
/// When the resulting fee is a non-integer amount, the amount is rounded up,
203-
/// ensuring that the transaction fee is enough instead of falling short if
204-
/// rounded down.
200+
/// Computes the absolute fee amount for a given [`FeeRate`] at this weight. When the resulting
201+
/// fee is a non-integer amount, the amount is rounded up, ensuring that the transaction fee is
202+
/// enough instead of falling short if rounded down.
205203
///
206204
/// Returns [`None`] if overflow occurred.
207205
#[must_use]

units/src/fee_rate/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use arbitrary::{Arbitrary, Unstructured};
1212

1313
/// Represents fee rate.
1414
///
15-
/// This is an integer newtype representing fee rate in `sat/kwu`. It provides protection against mixing
16-
/// up the types as well as basic formatting features.
15+
/// This is an integer newtype representing fee rate in `sat/kwu`. It provides protection against
16+
/// mixing up the types as well as basic formatting features.
1717
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1818
pub struct FeeRate(u64);
1919

0 commit comments

Comments
 (0)