Skip to content

Commit 4c1fcf3

Browse files
committed
Merge #191: Fix: typos in docs
0b1598f src: fix typos in docs (vuittont60) d7a00c4 examples: fix typos in docs (vuittont60) Pull request description: examples: fix typos in docs src: fix typos in docs ACKs for top commit: delta1: ACK 0b1598f Tree-SHA512: 649396c8156d3520ec5e623f8643d4898a9837bd90ed851a0fc33e46e716e6ffafb09d663f629f24363b041e24731e28e1a8a6cb2bad1c6daff52b3531751c55
2 parents dbeaf61 + 0b1598f commit 4c1fcf3

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

examples/pset_blind_coinjoin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use elements::hex::FromHex;
3131
use rand::SeedableRng;
3232

3333
// Assume txouts are simple pay to wpkh
34-
// and keep the secrets correponding to
34+
// and keep the secrets corresponding to
3535
// confidential txouts
3636
#[derive(Debug, Clone)]
3737
struct Secrets {

examples/raw_blind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use rand::SeedableRng;
2727
static PARAMS: AddressParams = AddressParams::ELEMENTS;
2828

2929
// Assume txouts are simple pay to wpkh
30-
// and keep the secrets correponding to
30+
// and keep the secrets corresponding to
3131
// confidential txouts
3232
#[derive(Debug, Clone)]
3333
struct Secrets {

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)