Skip to content

Commit 0b1598f

Browse files
committed
src: fix typos in docs
1 parent d7a00c4 commit 0b1598f

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/blind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ impl Transaction {
924924
/// Verify that the transaction has correctly calculated blinding
925925
/// factors and they CT verification equation holds.
926926
/// This is *NOT* a complete Transaction verification check
927-
/// It does *NOT* check whether input witness/script satifies
927+
/// It does *NOT* check whether input witness/script satisfies
928928
/// the script pubkey, or inputs are double-spent and other
929929
/// consensus checks.
930930
/// This method only checks if the [Transaction] verification

src/dynafed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl Decodable for FullParams {
198198
}
199199
}
200200

201-
/// Dynamic federations paramaters, as encoded in a block header
201+
/// Dynamic federations parameters, as encoded in a block header
202202
#[derive(Clone, Eq, Hash, PartialEq, PartialOrd, Ord)]
203203
pub enum Params {
204204
/// Null entry, used to signal "no vote" as a proposal

src/hex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl ToHex for [u8] {
199199
/// but if you have an encodable object, by using this you avoid the
200200
/// serialization to `Vec<u8>` by going directly to `String`.
201201
///
202-
/// Note that to achieve better perfomance than [`ToHex`] the struct must be
202+
/// Note that to achieve better performance than [`ToHex`] the struct must be
203203
/// created with the right `capacity` of the final hex string so that the inner
204204
/// `String` doesn't re-allocate.
205205
pub struct HexWriter(String);

src/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl fmt::Display for ParseIntError {
5252
}
5353
}
5454

55-
/// Not strictly neccessary but serves as a lint - avoids weird behavior if someone accidentally
55+
/// Not strictly necessary but serves as a lint - avoids weird behavior if someone accidentally
5656
/// passes non-integer to the `parse()` function.
5757
pub(crate) trait Integer: FromStr<Err=std::num::ParseIntError> + TryFrom<i8> + Sized {}
5858

src/pset/elip100.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ mod test {
252252
.get_pairs()
253253
.unwrap()
254254
.into_iter()
255-
.filter(|p| serialize(&p.key)[1..] == expected_key[..]) // NOTE key serialization contains an initial varint with the lenght of the key which is not present in the test vector
255+
.filter(|p| serialize(&p.key)[1..] == expected_key[..]) // NOTE key serialization contains an initial varint with the length of the key which is not present in the test vector
256256
.map(|p| p.value)
257257
.collect();
258258
assert_eq!(values.len(), 1);

src/pset/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub enum Error {
6868
NonStandardSighashType(u32),
6969
/// Parsing errors from bitcoin_hashes
7070
HashParseError(hashes::FromSliceError),
71-
/// The pre-image must hash to the correponding pset hash
71+
/// The pre-image must hash to the corresponding pset hash
7272
InvalidPreimageHashPair {
7373
/// Hash-type
7474
hash_type: PsetHash,

src/transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl Sequence {
212212
/// BIP-68 relative lock-time type flag mask
213213
const LOCK_TYPE_MASK: u32 = 0x00400000;
214214

215-
/// Retuns `true` if the sequence number indicates that the transaction is finalised.
215+
/// Returns `true` if the sequence number indicates that the transaction is finalised.
216216
///
217217
/// The sequence number being equal to 0xffffffff on all txin sequences indicates
218218
/// that the transaction is finalised.
@@ -415,7 +415,7 @@ pub struct PeginData<'tx> {
415415
/// to feed it raw into a hash function.
416416
pub claim_script: &'tx [u8],
417417
/// Mainchain transaction; not parsed to save time/memory since the
418-
/// parsed transaction is typically not useful without auxillary
418+
/// parsed transaction is typically not useful without auxiliary
419419
/// data (e.g. knowing how to compute pegin addresses for the
420420
/// sidechain).
421421
pub tx: &'tx [u8],

0 commit comments

Comments
 (0)