Skip to content

Commit

Permalink
Fix typos in various Rust and TypeScript files (#12643)
Browse files Browse the repository at this point in the history
**What does this pull request do? Explain your changes.**  
This pull request addresses several typographical errors in various
files within the repository. The following files were updated:
- `futures.rs` (in `core/async/src/test_loop/`)
- `metrics.rs` (in `core/o11y/src/`)
- `types.rs` (in `core/primitives-core/src/`)
- `zero_balance_account.rs` (in
`integration-tests/src/tests/client/features/`)
- `runner.rs` (in `runtime/near-vm-runner/src/`)

**Specific updates:**
- Fixed the usage of incorrect articles such as changing "a
event-loop-based" to "an event-loop-based."
- Corrected other minor typographical issues across different files.

**How did you test each of these updates?**  
The changes were tested by reviewing the files for correctness, ensuring
that the typographical issues were addressed without affecting the
functionality of the code. No additional tests were run since these are
purely textual corrections.

**Does this pull request close any open issues?**  
<!-- Fixes # -->

**Checklist:**
- [ ] Read the [contribution guide](./CONTRIBUTING.md)
- [ ] `make` runs successfully
- [ ] All tests in `./test.sh` pass
- [ ] README and other documentation updated
- [ ] [Pending changelog](./CHANGELOG_PENDING.md) updated

---------

Co-authored-by: Aleksandr Logunov <[email protected]>
  • Loading branch information
Dimitrolito and Longarithm authored Dec 20, 2024
1 parent f06f798 commit 7792dc9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/async/src/test_loop/futures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! To support this, pass test_loop.future_spawner() the &dyn FutureSpawner
//! to any component that needs to spawn futures.
//!
//! This causes any futures spawned during the test to end up as an callback in the
//! This causes any futures spawned during the test to end up as a callback in the
//! test loop. The event will eventually be executed by the drive_futures function,
//! which will drive the future until it is either suspended or completed. If suspended,
//! then the waker of the future (called when the future is ready to resume) will place
Expand Down
2 changes: 1 addition & 1 deletion core/o11y/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//! `observe()` method to record durations (e.g., block processing time).
//! - `IncCounter`: used to represent an ideally ever-growing, never-shrinking
//! integer (e.g., number of block processing requests).
//! - `IntGauge`: used to represent an varying integer (e.g., number of
//! - `IntGauge`: used to represent a varying integer (e.g., number of
//! attestations per block).
//!
//! ## Important
Expand Down
2 changes: 1 addition & 1 deletion core/primitives-core/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub type ProtocolVersion = u32;
/// used instead.
pub type ShardIndex = usize;

/// The shard identifier. It may be a arbitrary number - it does not need to be
/// The shard identifier. It may be an arbitrary number - it does not need to be
/// a number in the range 0..NUM_SHARDS. The shard ids do not need to be
/// sequential or contiguous.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ fn test_storage_usage_components() {
let config = config_store.get_config(PROTOCOL_VERSION);
let account_overhead = config.fees.storage_usage_config.num_bytes_account as usize;
let record_overhead = config.fees.storage_usage_config.num_extra_bytes_record as usize;
// The NEP proposes to fit 4 full access keys + 2 fn access keys in an zero balance account
// The NEP proposes to fit 4 full access keys + 2 fn access keys in a zero balance account
let full_access =
PUBLIC_KEY_STORAGE_USAGE + FULL_ACCESS_PERMISSION_STORAGE_USAGE + record_overhead;
let fn_access =
Expand Down
2 changes: 1 addition & 1 deletion runtime/near-vm-runner/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::sync::Arc;
/// is to crash or maybe ban a peer and/or send a challenge.
///
/// A `VMOutcome` is a graceful completion of a VM execution. It can also contain
/// an guest error message in the `aborted` field. But these are not errors in
/// a guest error message in the `aborted` field. But these are not errors in
/// the real sense, those are just reasons why execution failed at some point.
/// Such as when a smart contract code panics.
/// Note that the fact that `VMOutcome` contains is tracked on the blockchain.
Expand Down

0 comments on commit 7792dc9

Please sign in to comment.