Skip to content

Commit 4d0ae4c

Browse files
committed
docs: fix typos
1 parent 2e26aa5 commit 4d0ae4c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/coin_selector.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ impl<'a> CoinSelector<'a> {
164164

165165
/// Current weight of transaction implied by the selection.
166166
///
167-
/// If you don't have any drain outputs (only target outputs) just set drain_weights tio [`DrainWeights::NONE`].
167+
/// If you don't have any drain outputs (only target outputs) just set drain_weights to
168+
/// [`DrainWeights::NONE`].
168169
pub fn weight(&self, target_ouputs: TargetOutputs, drain_weight: DrainWeights) -> u32 {
169170
TX_FIXED_FIELD_WEIGHT
170171
+ self.input_weight()

src/drain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl Drain {
9696
/// adding this outupt(s).
9797
#[derive(Clone, Copy, Debug, PartialEq)]
9898
pub struct ChangePolicy {
99-
/// The minimum amount of excesss there needs to be add a change output.
99+
/// The minimum amount of excess there needs to be add a change output.
100100
pub min_value: u64,
101101
/// The weights of the drain that would be added according to the policy.
102102
pub drain_weights: DrainWeights,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub const TX_FIXED_FIELD_WEIGHT: u32 = (4 /* nVersion */ + 4/* nLockTime */) * 4
4545
/// The weight of a taproot keyspend witness
4646
pub const TR_KEYSPEND_SATISFACTION_WEIGHT: u32 = 1 /*witness_len*/ + 1 /*item len*/ + 64 /*signature*/;
4747

48-
/// The weight of a segwit `v1` (taproot) script pubkey in an outupt. This does not include the weight of
48+
/// The weight of a segwit `v1` (taproot) script pubkey in an output. This does not include the weight of
4949
/// the `TxOut` itself or the script pubkey length field.
5050
pub const TR_SPK_WEIGHT: u32 = (1 + 1 + 32) * 4; // version + push + key
5151

src/metrics/lowest_fee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl BnbMetric for LowestFee {
6969
if ev < -0.0 {
7070
let value_per_negative_effective_value =
7171
low_sats_per_wu_candidate.value as f32 / ev.abs();
72-
// this is how much abosolute value we have to add to cancel out the excess
72+
// this is how much absolute value we have to add to cancel out the excess
7373
let extra_value_needed_to_get_rid_of_change = amount_above_change_threshold
7474
as f32
7575
* value_per_negative_effective_value;

0 commit comments

Comments
 (0)