From 438ee45691c22fcca1038ba78ca7451b4270edb1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 21 Feb 2023 08:11:37 +1100 Subject: [PATCH] Show cache construction in rustdoc To make it more clear what the cache is show the cache construction line in rustdoc. --- 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 af8e4d48..e6097564 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -599,7 +599,7 @@ impl EncodeSigningDataResult { /// # const SOME_TX: &'static str = "0100000001a15d57094aa7a21a28cb20b59aab8fc7d1149a3bdbcddba9c622e4f5f6a99ece010000006c493046022100f93bb0e7d8db7bd46e40132d1f8242026e045f03a0efe71bbb8e3f475e970d790221009337cd7f1f929f00cc6ff01f03729b069a7c21b59b1736ddfee5db5946c5da8c0121033b9b137ee87d5a812d6f506efdd37f0affa7ffc310711c06c7f3e097c9447c52ffffffff0100e1f505000000001976a9140389035a9225b3839e2bbf32d826a1e222031fd888ac00000000"; /// # let raw_tx = Vec::from_hex(SOME_TX).unwrap(); /// # let tx: Transaction = deserialize(&raw_tx).unwrap(); - /// # let cache = SighashCache::new(&tx); + /// let cache = SighashCache::new(&tx); /// if cache.legacy_encode_signing_data_to(&mut writer, input_index, &script_pubkey, sighash_u32) /// .is_sighash_single_bug() /// .expect("writer can't fail") {