Skip to content

Commit fa0d68d

Browse files
committed
Fix typos checks
1 parent 3e62648 commit fa0d68d

File tree

32 files changed

+60
-60
lines changed

32 files changed

+60
-60
lines changed

dash-spv-ffi/FFI_API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Functions: 27
3939
| Function | Description | Module |
4040
|----------|-------------|--------|
4141
| `dash_spv_ffi_client_update_config` | Update the running client's configuration | client |
42-
| `dash_spv_ffi_config_add_peer` | Adds a peer address to the configuration Accepts either a full socket addres... | config |
42+
| `dash_spv_ffi_config_add_peer` | Adds a peer address to the configuration Accepts either a full socket address... | config |
4343
| `dash_spv_ffi_config_destroy` | Destroys an FFIClientConfig and frees its memory # Safety - `config` must be... | config |
4444
| `dash_spv_ffi_config_get_data_dir` | Gets the data directory path from the configuration # Safety - `config` must... | config |
4545
| `dash_spv_ffi_config_get_mempool_strategy` | Gets the mempool synchronization strategy # Safety - `config` must be a vali... | config |

dash/examples/ecdsa-psbt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const INPUT_UTXO_TXID: &str = "295f06639cde6039bf0c3dbf4827f0e3f2b2c2b476408e2f9
5353
const INPUT_UTXO_VOUT: u32 = 0;
5454
const INPUT_UTXO_SCRIPT_PUBKEY: &str = "00149891eeb8891b3e80a2a1ade180f143add23bf5de";
5555
const INPUT_UTXO_VALUE: &str = "50 BTC";
56-
// Get this from the desciptor,
56+
// Get this from the descriptor,
5757
// "wpkh([97f17dca/0'/0'/0']02749483607dafb30c66bd93ece4474be65745ce538c2d70e8e246f17e7a4e0c0c)#m9n56cx0".
5858
const INPUT_UTXO_DERIVATION_PATH: &str = "m/0h/0h/0h";
5959

@@ -181,7 +181,7 @@ impl WatchOnly {
181181
}
182182
}
183183

184-
/// Creates the PSBT, in BIP174 parlance this is the 'Creater'.
184+
/// Creates the PSBT, in BIP174 parlance this is the 'Creator'.
185185
fn create_psbt<C: Verification>(&self, secp: &Secp256k1<C>) -> Result<Psbt> {
186186
let to_address = Address::from_str(RECEIVE_ADDRESS)?.require_network(Network::Regtest)?;
187187
let to_amount = Amount::from_str(OUTPUT_AMOUNT_BTC)?;

dash/examples/handshake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use dashcore::{Network, secp256k1};
1212
use secp256k1::rand;
1313

1414
fn main() {
15-
// This example establishes a connection to a Bitcoin node, sends the intial
15+
// This example establishes a connection to a Bitcoin node, sends the initial
1616
// "version" message, waits for the reply, and finally closes the connection.
1717
let args: Vec<String> = env::args().collect();
1818
if args.len() < 2 {

dash/src/address.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ pub struct AddressEncoding<'a> {
628628
pub p2pkh_prefix: u8,
629629
/// base58 version byte for p2sh payloads (e.g. 0x05 for "3..." addresses).
630630
pub p2sh_prefix: u8,
631-
/// hrp used in bech32 addresss (e.g. "bc" for "bc1..." addresses).
631+
/// hrp used in bech32 address (e.g. "bc" for "bc1..." addresses).
632632
pub bech32_hrp: &'a str,
633633
}
634634

@@ -1019,7 +1019,7 @@ impl<V: NetworkValidation> Address<V> {
10191019
encoding.fmt(fmt)
10201020
}
10211021

1022-
/// Create new address from given components, infering the network validation
1022+
/// Create new address from given components, inferring the network validation
10231023
/// marker type of the address.
10241024
#[inline]
10251025
pub fn new(network: Network, payload: Payload) -> Self {
@@ -1222,7 +1222,7 @@ impl Address<NetworkUnchecked> {
12221222
unsafe { &*(self as *const Address<NetworkUnchecked> as *const Address) }
12231223
}
12241224
/// Parsed addresses do not always have *one* network. The problem is that legacy testnet,
1225-
/// regtest and devnet addresse use the same prefix instead of multiple different ones. When
1225+
/// regtest and devnet addresses use the same prefix instead of multiple different ones. When
12261226
/// parsing, such addresses are always assumed to be testnet addresses (the same is true for
12271227
/// bech32 devnet addresses). So if one wants to check if an address belongs to a certain
12281228
/// network a simple comparison is not enough anymore. Instead this function can be used.

dash/src/amount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl Denomination {
103103
}
104104
}
105105

106-
/// These form are ambigous and could have many meanings. For example, M could denote Mega or Milli.
106+
/// These form are ambiguous and could have many meanings. For example, M could denote Mega or Milli.
107107
/// If any of these forms are used, an error type PossiblyConfusingDenomination is returned.
108108
const CONFUSING_FORMS: [&str; 9] =
109109
["Msat", "Msats", "MSAT", "MSATS", "MSat", "MSats", "MBTC", "Mbtc", "PBTC"];

dash/src/bip152.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl_consensus_encoding!(BlockTransactions, block_hash, transactions);
353353

354354
impl BlockTransactions {
355355
/// Construct a [BlockTransactions] from a [BlockTransactionsRequest] and
356-
/// the corresponsing full [Block] by providing all requested transactions.
356+
/// the corresponding full [Block] by providing all requested transactions.
357357
pub fn from_request(
358358
request: &BlockTransactionsRequest,
359359
block: &Block,
@@ -459,7 +459,7 @@ mod test {
459459
#[test]
460460
fn test_getblocktx_differential_encoding_de_and_serialization() {
461461
let testcases = vec![
462-
// differentially encoded VarInts, indicies
462+
// differentially encoded VarInts, indices
463463
(vec![4, 0, 5, 1, 10], vec![0, 6, 8, 19]),
464464
(vec![1, 0], vec![0]),
465465
(vec![5, 0, 0, 0, 0, 0], vec![0, 1, 2, 3, 4]),

dash/src/blockdata/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use crate::{VarInt, io, merkle_tree};
2828
/// Bitcoin block header.
2929
///
3030
/// Contains all the block's information except the actual transactions, but
31-
/// including a root of a [merkle tree] commiting to all transactions in the block.
31+
/// including a root of a [merkle tree] committing to all transactions in the block.
3232
///
3333
/// [merkle tree]: https://en.wikipedia.org/wiki/Merkle_tree
3434
///

dash/src/blockdata/opcodes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ all_opcodes! {
336336
/// Classification context for the opcode.
337337
///
338338
/// Some opcodes like [`OP_RESERVED`] abort the script in `ClassifyContext::Legacy` context,
339-
/// but will act as `OP_SUCCESSx` in `ClassifyContext::TapScript` (see BIP342 for full list).
339+
/// but will act as `OP_SUCCESSSx` in `ClassifyContext::TapScript` (see BIP342 for full list).
340340
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
341341
pub enum ClassifyContext {
342342
/// Opcode used in tapscript context.

dash/src/blockdata/script/borrowed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use crate::taproot::{LeafVersion, TapLeafHash, TapNodeHash};
5959
/// ## Memory safety
6060
///
6161
/// The type is `#[repr(transparent)]` for internal purposes only!
62-
/// No consumer crate may rely on the represenation of the struct!
62+
/// No consumer crate may rely on the representation of the struct!
6363
///
6464
/// ## References
6565
///

dash/src/blockdata/script/owned.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl ScriptBuf {
257257
self.0.extend_from_slice(data.as_bytes());
258258
}
259259

260-
/// Computes the sum of `len` and the lenght of an appropriate push opcode.
260+
/// Computes the sum of `len` and the length of an appropriate push opcode.
261261
pub fn reserved_len_for_slice(len: usize) -> usize {
262262
len + match len {
263263
0..=0x4b => 1,
@@ -323,7 +323,7 @@ impl ScriptBuf {
323323

324324
/// Converts this `ScriptBuf` into a [boxed](Box) [`Script`].
325325
///
326-
/// This method reallocates if the capacity is greater than lenght of the script but should not
326+
/// This method reallocates if the capacity is greater than length of the script but should not
327327
/// when they are equal. If you know beforehand that you need to create a script of exact size
328328
/// use [`reserve_exact`](Self::reserve_exact) before adding data to the script so that the
329329
/// reallocation can be avoided.

0 commit comments

Comments
 (0)