Remove ToU64 from rustdocs

The `ToU64` trait is not meant to be used publicly, remove the mention
of it from rustdocs.
This commit is contained in:
Tobin C. Harding 2024-12-12 13:01:16 +11:00
parent ea6bf12a64
commit 4ef06b4f2b
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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())