Fix typos in rustdocs

This commit is contained in:
GoodDaisy 2024-01-11 22:45:45 +08:00
parent de9f20a620
commit ed47c35b4d
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ fn p2pk_public_key_compressed_key_returns_some() {
#[test] #[test]
fn script_x_only_key() { fn script_x_only_key() {
// Notice the "20" which prepends the keystr. That 20 is hexidecimal for "32". The Builder automatically adds the 32 opcode // Notice the "20" which prepends the keystr. That 20 is hexadecimal for "32". The Builder automatically adds the 32 opcode
// to our script in order to give a heads up to the script compiler that it should add the next 32 bytes to the stack. // to our script in order to give a heads up to the script compiler that it should add the next 32 bytes to the stack.
// From: https://github.com/bitcoin-core/btcdeb/blob/e8c2750c4a4702768c52d15640ed03bf744d2601/doc/tapscript-example.md?plain=1#L43 // From: https://github.com/bitcoin-core/btcdeb/blob/e8c2750c4a4702768c52d15640ed03bf744d2601/doc/tapscript-example.md?plain=1#L43
const KEYSTR: &str = "209997a497d964fc1a62885b05a51166a65a90df00492c8d7cf61d6accf54803be"; const KEYSTR: &str = "209997a497d964fc1a62885b05a51166a65a90df00492c8d7cf61d6accf54803be";

View File

@ -1181,7 +1181,7 @@ impl From<&Transaction> for Wtxid {
/// of the to-be-constructed transaction. /// of the to-be-constructed transaction.
/// ///
/// Note that lengths of the scripts and witness elements must be non-serialized, IOW *without* the /// Note that lengths of the scripts and witness elements must be non-serialized, IOW *without* the
/// preceding compact size. The lenght of preceding compact size is computed and added inside the /// preceding compact size. The length of preceding compact size is computed and added inside the
/// function for convenience. /// function for convenience.
/// ///
/// If you have the transaction already constructed (except for signatures) with a dummy value for /// If you have the transaction already constructed (except for signatures) with a dummy value for