From 157fe48dfdc4029a0db63b393d8d9fd32a197e30 Mon Sep 17 00:00:00 2001 From: planetBoy <140164174+Guayaba221@users.noreply.github.com> Date: Wed, 2 Apr 2025 12:26:53 +0200 Subject: [PATCH] minor docstring fixups --- bitcoin/src/blockdata/transaction.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 0c60d3c65..341fba105 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -162,7 +162,7 @@ crate::internal_macros::define_extension_trait! { /// # Panics /// /// If output size * 4 overflows, this should never happen under normal conditions. Use - /// `Weght::from_vb_checked(self.size() as u64)` if you are concerned. + /// `Weight::from_vb_checked(self.size() as u64)` if you are concerned. fn weight(&self) -> Weight { // Size is equivalent to virtual size since all bytes of a TxOut are non-witness bytes. Weight::from_vb(self.size().to_u64()) @@ -799,7 +799,7 @@ pub fn effective_value( /// preceding compact size. The length of preceding compact size is computed and added inside the /// function for convenience. /// -/// If you have the transaction already constructed (except for signatures) with a dummy value for +/// If you have the transaction already constructed (except for signatures) with a dummy value for /// fee output you can use the return value of [`Transaction::script_pubkey_lens`] method directly /// as the second argument. ///