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
|
/// # 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())
|
||||||
|
|
Loading…
Reference in New Issue