diff --git a/bitcoin/src/blockdata/script/owned.rs b/bitcoin/src/blockdata/script/owned.rs index 976caa51..39cd3c8a 100644 --- a/bitcoin/src/blockdata/script/owned.rs +++ b/bitcoin/src/blockdata/script/owned.rs @@ -213,7 +213,7 @@ impl ScriptBuf { self.0.extend_from_slice(data.as_bytes()); } - /// Computes the sum of `len` and the lenght of an appropriate push opcode. + /// Computes the sum of `len` and the length of an appropriate push opcode. pub(in crate::blockdata::script) fn reserved_len_for_slice(len: usize) -> usize { len + match len { 0..=0x4b => 1, @@ -277,7 +277,7 @@ impl ScriptBuf { /// Converts this `ScriptBuf` into a [boxed](Box) [`Script`]. /// - /// This method reallocates if the capacity is greater than lenght of the script but should not + /// This method reallocates if the capacity is greater than length of the script but should not /// when they are equal. If you know beforehand that you need to create a script of exact size /// use [`reserve_exact`](Self::reserve_exact) before adding data to the script so that the /// reallocation can be avoided. diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs index fca86019..f92e8b93 100644 --- a/bitcoin/src/lib.rs +++ b/bitcoin/src/lib.rs @@ -61,7 +61,7 @@ pub extern crate base64; /// Encodes and decodes the Bech32 forrmat. pub extern crate bech32; -/// Rust implementation of cryptographic hash function algorithems. +/// Rust implementation of cryptographic hash function algorithms. pub extern crate hashes; /// Re-export the `hex-conservative` crate.