Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 authored and joshuef committed Oct 26, 2023
1 parent e92ff28 commit 40d90f0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sn_logging/src/lib.rs
Expand Up @@ -65,7 +65,7 @@ impl LogBuilder {
/// Create a new builder
/// Provide the default_logging_targets that are used if the `SN_LOG` env variable is not set.
///
/// By default, we use log to the StdOut with the defualt format.
/// By default, we use log to the StdOut with the default format.
pub fn new(default_logging_targets: Vec<(String, Level)>) -> Self {
Self {
default_logging_targets,
Expand Down
2 changes: 1 addition & 1 deletion sn_networking/src/error.rs
Expand Up @@ -29,7 +29,7 @@ pub(super) type Result<T, E = Error> = std::result::Result<T, E>;
#[derive(Debug, Error)]
#[allow(missing_docs)]
pub enum Error {
#[error("Netowrk query timed out")]
#[error("Network query timed out")]
QueryTimeout,

#[error("Close group size must be a non-zero usize")]
Expand Down
2 changes: 1 addition & 1 deletion sn_node/tests/verify_data_location.rs
Expand Up @@ -54,7 +54,7 @@ const VERIFICATION_ATTEMPTS: usize = 3;
// It can be overridden by setting the 'CHURN_COUNT' env var.
const CHURN_COUNT: u8 = 4;

/// Default number of chunks that should be PUT to the netowrk.
/// Default number of chunks that should be PUT to the network.
// It can be overridden by setting the 'CHUNK_COUNT' env var.
const CHUNK_COUNT: usize = 5;

Expand Down
4 changes: 2 additions & 2 deletions sn_registers/src/reg_crdt.rs
Expand Up @@ -85,7 +85,7 @@ impl RegisterCrdt {
// Let's first check the op is validly signed.
// Note: Perms and valid sig for the op are checked at the upper Register layer.

// Check the targetting address is correct
// Check the targeting address is correct
if self.address != op.address {
return Err(Error::RegisterAddrMismatch {
dst_addr: Box::new(op.address),
Expand Down Expand Up @@ -144,7 +144,7 @@ mod tests {
assert!(entry_hash_1 == entry_hash_2);

let entry_2 = vec![0x2, 0x2];
// RegisterCrdtImpl shall create differnt hashes for different entries from root
// RegisterCrdtImpl shall create different hashes for different entries from root
let (entry_hash_1_2, _, _) = crdt_1.write(entry_2, parents.clone())?;
assert!(entry_hash_1 != entry_hash_1_2);

Expand Down
2 changes: 1 addition & 1 deletion sn_transfers/src/transfers/transfer.rs
Expand Up @@ -143,7 +143,7 @@ impl Transfer {

/// Unspent Transaction (Tx) Output
/// Information can be used by the Tx recipient of this output
/// to check that they recieved money and to spend it
/// to check that they received money and to spend it
///
/// This struct contains sensitive information that should be kept secret
/// so it should be encrypted to the recipient's public key (public address)
Expand Down

0 comments on commit 40d90f0

Please sign in to comment.