primitives: Use doc links for OutPoint

Now that `OutPoint` is in `primitives` we can use a rustdoc link. While
we are at it link from the error type docs too.

Close: #3347
This commit is contained in:
Tobin C. Harding 2024-09-19 14:40:10 +10:00
parent b079cbafee
commit da0795e590
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ fn parse_vout(s: &str) -> Result<u32, ParseOutPointError> {
parse::int(s).map_err(ParseOutPointError::Vout)
}
/// An error in parsing an OutPoint.
/// An error in parsing an [`OutPoint`].
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
#[cfg(feature = "alloc")]
@ -156,7 +156,7 @@ impl Txid {
/// The `Txid` used in a coinbase prevout.
///
/// This is used as the "txid" of the dummy input of a coinbase transaction. This is not a real
/// TXID and should not be used in any other contexts. See `OutPoint::COINBASE_PREVOUT`.
/// TXID and should not be used in any other contexts. See [`OutPoint::COINBASE_PREVOUT`].
pub const COINBASE_PREVOUT: Self = Self::from_byte_array([0; 32]);
}