Merge rust-bitcoin/rust-bitcoin#4304: minor docstring fixups
157fe48dfd
minor docstring fixups (planetBoy)
Pull request description:
ACKs for top commit:
apoelstra:
ACK 157fe48dfdc4029a0db63b393d8d9fd32a197e30; successfully ran local tests
Tree-SHA512: 29fe6168ff729f0f65f32a2c6ad28d45e36e0761cac4455b57b891f9c0bd2622db51a21b4961d33fa5a8934302eefca4a77c20732bf047e2721a5bc5d655c340
This commit is contained in:
commit
f7006e3d15
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue