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

Fix grammar errors #3151

Merged
merged 9 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from 6 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 examples/matching-engine/tests/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub async fn get_orders(
/// User_b thus commits 4 + 4 = 8 token B on the matching engine chain and is left
/// with 1 token B.
/// * The price that is matching is 2 where a transaction can actually occur
/// * Only 3 token B can be exhanged against 6 tokens A.
/// * Only 3 token B can be exchanged against 6 tokens A.
/// * So, the order from user_b is only partially filled.
/// * Then the orders are cancelled and the user get back their tokens.
/// After the exchange we have
Expand Down
4 changes: 2 additions & 2 deletions linera-base/src/prometheus_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::time::Instant;

const LINERA_NAMESPACE: &str = "linera";

/// Wrapper arount prometheus register_int_counter_vec! macro which also sets the linera namespace
/// Wrapper around prometheus register_int_counter_vec! macro which also sets the linera namespace
pub fn register_int_counter_vec(
name: &str,
description: &str,
Expand All @@ -22,7 +22,7 @@ pub fn register_int_counter_vec(
register_int_counter_vec!(counter_opts, label_names).expect("IntCounter can be created")
}

/// Wrapper arount prometheus register_histogram_vec! macro which also sets the linera namespace
/// Wrapper around prometheus register_histogram_vec! macro which also sets the linera namespace
Dimitrolito marked this conversation as resolved.
Show resolved Hide resolved
pub fn register_histogram_vec(
name: &str,
description: &str,
Expand Down
2 changes: 1 addition & 1 deletion linera-core/src/chain_worker/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use linera_execution::{
Message, Query, QueryContext, Response, ServiceRuntimeEndpoint, SystemMessage,
};
use linera_storage::{Clock as _, Storage};
use linera_views::views::{ClonableView, ViewError};
use linera_views::views::{CloneableView, ViewError};
Dimitrolito marked this conversation as resolved.
Show resolved Hide resolved
use tokio::sync::{oneshot, OwnedRwLockReadGuard, RwLock};

#[cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions linera-core/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3226,7 +3226,7 @@ where
// deadlock, because of the issue described in
// https://github.com/linera-io/linera-protocol/pull/1173.

// TODO(#2013): replace this lock with an asychronous communication channel
// TODO(#2013): replace this lock with an asynchronous communication channel

let mut process_notifications = FuturesUnordered::new();

Expand All @@ -3251,7 +3251,7 @@ where
.await
{
Ok(handler) => process_notifications.push(handler),
Err(error) => error!("Failed to update comittee: {error}"),
Err(error) => error!("Failed to update committee: {error}"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion linera-sdk/src/abis/fungible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl InitialStateBuilder {
}

/// Returns the serialized initial state of the application, ready to used as the
/// initilization argument.
/// initialization argument.
pub fn build(&self) -> InitialState {
InitialState {
accounts: self.account_balances.clone(),
Expand Down