minor docstring fixups

This commit is contained in:
planetBoy 2025-04-02 12:26:53 +02:00 committed by GitHub
parent 436de8ef12
commit 157fe48dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ crate::internal_macros::define_extension_trait! {
/// # Panics /// # Panics
/// ///
/// If output size * 4 overflows, this should never happen under normal conditions. Use /// 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 { fn weight(&self) -> Weight {
// Size is equivalent to virtual size since all bytes of a TxOut are non-witness bytes. // Size is equivalent to virtual size since all bytes of a TxOut are non-witness bytes.
Weight::from_vb(self.size().to_u64()) 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 /// preceding compact size. The length of preceding compact size is computed and added inside the
/// function for convenience. /// 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 /// fee output you can use the return value of [`Transaction::script_pubkey_lens`] method directly
/// as the second argument. /// as the second argument.
/// ///