Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos and delete repeat words #12711

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/epoch-manager/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3833,7 +3833,7 @@ fn test_get_shard_uids_pending_resharding_double_different() {
assert_eq!(shard_uids, vec![s0, s1].into_iter().collect::<HashSet<_>>());
}

/// Test that that only one shard is pending resharding during a double
/// Test that only one shard is pending resharding during a double
/// resharding where the same shard is reshareded twice.
#[test]
fn test_get_shard_uids_pending_resharding_double_same() {
Expand Down
2 changes: 1 addition & 1 deletion chain/rosetta-rpc/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ pub(crate) struct ConstructionPayloadsRequest {

/// ConstructionTransactionResponse is returned by `/construction/payloads`. It
/// contains an unsigned transaction blob (that is usually needed to construct
/// the a network transaction from a collection of signatures) and an
/// a network transaction from a collection of signatures) and an
/// array of payloads that must be signed by the caller.
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, Apiv2Schema)]
pub(crate) struct ConstructionPayloadsResponse {
Expand Down
4 changes: 2 additions & 2 deletions core/parameters/src/parameter_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ mod tests {
check_parameter_table("", &[], []);
}

/// Reading reading a normally formatted base parameter file with no diffs
/// Reading a normally formatted base parameter file with no diffs
#[test]
fn test_basic_parameter_table() {
check_parameter_table(
Expand All @@ -605,7 +605,7 @@ mod tests {
);
}

/// Reading reading a slightly funky formatted base parameter file with no diffs
/// Reading a slightly funky formatted base parameter file with no diffs
#[test]
fn test_basic_parameter_table_weird_syntax() {
check_parameter_table(
Expand Down
2 changes: 1 addition & 1 deletion core/store/src/db/rocksdb/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::Temperature;
/// The usage of the type is to create a checkpoint before a risky database
/// operation and then [`Snapshot::remove`] it when the operation finishes
/// successfully. In that scenario, the checkpoint will be gracefully deleted
/// from the file system. On the other hand, if the operation fails an the
/// from the file system. On the other hand, if the operation fails and the
/// checkpoint is not deleted, this type’s Drop implementation will log
/// informational messages pointing where the snapshot resides and how to
/// recover data from it.
Expand Down
2 changes: 1 addition & 1 deletion nightly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ For example:

(Currently the package name is ignored but it may change in the future
so make sure it’s set correctly). The path to the test function must
match exactly an the test binary is called with `--exact` argument.
match exactly the test binary is called with `--exact` argument.

### Other arguments

Expand Down
2 changes: 1 addition & 1 deletion runtime/near-vm/compiler/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ where
pub trait Compiler: Send {
/// Validates a module.
///
/// It returns the a succesful Result in case is valid, `CompileError` in case is not.
/// It returns a succesful Result in case is valid, `CompileError` in case is not.
fn validate_module<'data>(
&self,
features: &Features,
Expand Down
2 changes: 1 addition & 1 deletion runtime/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl Runtime {

/// Takes one signed transaction, verifies it and converts it to a receipt.
///
/// Add the produced receipt receipt either to the new local receipts if the signer is the same
/// Add the produced receipt either to the new local receipts if the signer is the same
/// as receiver or to the new outgoing receipts.
///
/// When transaction is converted to a receipt, the account is charged for the full value of
Expand Down
Loading