Use `Transaction::compute_txid` in rustdoc

The `txid` function was re-named to `compute_txid` but we missed one
call link in rustdocs - update it.
This commit is contained in:
Tobin C. Harding 2024-10-30 12:23:53 +11:00
parent 98383a0fbe
commit 7b5af2ad5b
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ impl Transaction {
///
/// Hashes the transaction **including** all segwit data (i.e. the marker, flag bytes, and the
/// witness fields themselves). For non-segwit transactions which do not have any segwit data,
/// this will be equal to [`Transaction::txid()`].
/// this will be equal to [`Transaction::compute_txid()`].
#[doc(alias = "wtxid")]
pub fn compute_wtxid(&self) -> Wtxid {
let hash = hash_transaction(self, self.uses_segwit_serialization());