From 8e099706d8de48331ca2bc5cec4f4617c60e019f Mon Sep 17 00:00:00 2001 From: pinglanlu Date: Fri, 17 Jan 2025 00:26:34 +0800 Subject: [PATCH] chore: fix some typos in comment (#3141) ## Motivation fix some typos in comment ## Proposal ## Test Plan ## Release Plan - Nothing to do / These changes follow the usual release cycle. - These changes should be backported to the latest `devnet` branch, then - be released in a new SDK, - be released in a validator hotfix. - These changes should be backported to the latest `testnet` branch, then - be released in a new SDK, - be released in a validator hotfix. - Backporting is not possible but we may want to deploy a new `devnet` and release a new SDK soon. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist) Signed-off-by: pinglanlu --- linera-client/src/unit_tests/wallet.rs | 2 +- linera-core/src/node.rs | 2 +- linera-rpc/src/message.rs | 2 +- linera-service/benches/transfers.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/linera-client/src/unit_tests/wallet.rs b/linera-client/src/unit_tests/wallet.rs index 3bc1047c9d8..66a0b3ba239 100644 --- a/linera-client/src/unit_tests/wallet.rs +++ b/linera-client/src/unit_tests/wallet.rs @@ -15,7 +15,7 @@ use rand::SeedableRng as _; use super::util::make_genesis_config; use crate::{client_context::ClientContext, config::WalletState, wallet::Wallet}; -/// Tests wether we can correctly save a wallet that contains pending blobs. +/// Tests whether we can correctly save a wallet that contains pending blobs. #[test_log::test(tokio::test)] async fn test_save_wallet_with_pending_blobs() -> anyhow::Result<()> { let mut rng = rand::rngs::StdRng::seed_from_u64(42); diff --git a/linera-core/src/node.rs b/linera-core/src/node.rs index 91ce36173c3..d910e8de2ff 100644 --- a/linera-core/src/node.rs +++ b/linera-core/src/node.rs @@ -213,7 +213,7 @@ pub enum NodeError { #[error("We don't have the value for the certificate.")] MissingCertificateValue, - #[error("Reponse doesn't contain requested ceritifcates: {0:?}")] + #[error("Response doesn't contain requested ceritifcates: {0:?}")] MissingCertificates(Vec), #[error("Validator's response to block proposal failed to include a vote")] diff --git a/linera-rpc/src/message.rs b/linera-rpc/src/message.rs index 2c8cac9b1da..a584ee5d7ec 100644 --- a/linera-rpc/src/message.rs +++ b/linera-rpc/src/message.rs @@ -104,7 +104,7 @@ impl RpcMessage { Some(chain_id) } - /// Wether this messsage is "local" i.e. will be executed locally on the proxy + /// Whether this message is "local" i.e. will be executed locally on the proxy /// or if it'll be proxied to the server. pub fn is_local_message(&self) -> bool { use RpcMessage::*; diff --git a/linera-service/benches/transfers.rs b/linera-service/benches/transfers.rs index f17e23eed83..8a93885e9b7 100644 --- a/linera-service/benches/transfers.rs +++ b/linera-service/benches/transfers.rs @@ -15,7 +15,7 @@ use linera_execution::system::Recipient; use linera_sdk::test::{ActiveChain, TestValidator}; use tokio::runtime::Runtime; -/// Benchmarks several transactions transfering tokens across chains. +/// Benchmarks several transactions transferring tokens across chains. fn cross_chain_native_token_transfers(criterion: &mut Criterion) { let chain_count = 100; let accounts_per_chain = 1;