Do trivial rustdoc improvements

This commit is contained in:
Tobin C. Harding 2023-08-01 16:16:28 +10:00
parent 3225aa9556
commit 3c0bb63423
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
2 changed files with 6 additions and 6 deletions

View File

@ -186,13 +186,13 @@ impl<'a> IntoIterator for &'a SerializedSignature {
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive] #[non_exhaustive]
pub enum Error { pub enum Error {
/// Hex decoding error /// Hex decoding error.
Hex(hex::HexToBytesError), Hex(hex::HexToBytesError),
/// Non-standard sighash type /// Non-standard sighash type.
SighashType(NonStandardSighashTypeError), SighashType(NonStandardSighashTypeError),
/// Empty Signature /// Signature was empty.
EmptySignature, EmptySignature,
/// A secp256k1 error /// A secp256k1 error.
Secp256k1(secp256k1::Error), Secp256k1(secp256k1::Error),
} }

View File

@ -683,9 +683,9 @@ pub enum Error {
Base58(base58::Error), Base58(base58::Error),
/// A secp256k1 error. /// A secp256k1 error.
Secp256k1(secp256k1::Error), Secp256k1(secp256k1::Error),
/// Invalid key prefix error /// Invalid key prefix error.
InvalidKeyPrefix(u8), InvalidKeyPrefix(u8),
/// Hex decoding error /// Hex decoding error.
Hex(hex::HexToArrayError), Hex(hex::HexToArrayError),
/// `PublicKey` hex should be 66 or 130 digits long. /// `PublicKey` hex should be 66 or 130 digits long.
InvalidHexLength(usize), InvalidHexLength(usize),