From 6ae0fdf0aa03cdd31e317ef5a05d4fc2552139ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Tue, 16 Jan 2024 00:47:14 +0800 Subject: [PATCH] docs: fix typos and use better wording --- README.md | 2 +- src/coin_selector.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8969430..e37ed6d 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ assert_eq!(selected_coins.len(), 1); let drain = selector.drain(target, change_policy); if drain.is_some() { - // add our change outupt to the transaction + // add our change output to the transaction let change_value = drain.value; } ``` diff --git a/src/coin_selector.rs b/src/coin_selector.rs index b62fd8f..b084e38 100644 --- a/src/coin_selector.rs +++ b/src/coin_selector.rs @@ -666,7 +666,7 @@ impl DrainWeights { + self.spend_weight as f32 * long_term_feerate.spwu() } - /// The the fee you will pay to spend this otuput in the future. + /// The fee you will pay to spend these change output(s) in the future. pub fn spend_fee(&self, long_term_feerate: FeeRate) -> u64 { (self.spend_weight as f32 * long_term_feerate.spwu()).ceil() as u64 }