Merge rust-bitcoin/rust-bitcoin#3748: Remove ToU64 from rustdocs
4ef06b4f2b
Remove ToU64 from rustdocs (Tobin C. Harding) Pull request description: The `ToU64` trait is not meant to be used publicly, remove the mention of it from rustdocs. ACKs for top commit: shinghim: ACK4ef06b4f2b
apoelstra: ACK 4ef06b4f2b9945b46c190abd0cb3a6dfe234c7b5; successfully ran local tests Tree-SHA512: e9acef9194cee380aa2aa44af9285d4f6e025bdf09f76e5066916c51215db15f1f920fd8ecf3cf079f0a2dddab0332b3a7df104f5bd61d12fc337b4ed163310c
This commit is contained in:
commit
66accdee08
|
@ -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().to_u64())` if you are concerned.
|
||||
/// `Weght::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())
|
||||
|
|
Loading…
Reference in New Issue