From 4ef06b4f2b9945b46c190abd0cb3a6dfe234c7b5 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 12 Dec 2024 13:01:16 +1100 Subject: [PATCH] Remove ToU64 from rustdocs The `ToU64` trait is not meant to be used publicly, remove the mention of it from rustdocs. --- bitcoin/src/blockdata/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 35c0ff606..c9edcf741 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -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())