Skip to content

Commit

Permalink
Fix code messages errors (#3197)
Browse files Browse the repository at this point in the history
fix typos in comments
  • Loading branch information
intls authored Jan 29, 2025
1 parent e35c25f commit 8fd535f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 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
pub fn register_histogram_vec(
name: &str,
description: &str,
Expand Down Expand Up @@ -70,14 +70,14 @@ impl<Metric> ActiveMeasurementGuard<'_, Metric>
where
Metric: MeasureLatency,
{
/// Finishes the measurement, updates the `Metric` and the returns the measured latency in
/// Finishes the measurement, updates the `Metric` and returns the measured latency in
/// milliseconds.
pub fn finish(mut self) -> f64 {
self.finish_by_ref()
}

/// Finishes the measurement without taking ownership of this [`ActiveMeasurementGuard`],
/// updates the `Metric` and the returns the measured latency in milliseconds.
/// updates the `Metric` and returns the measured latency in milliseconds.
fn finish_by_ref(&mut self) -> f64 {
match self.metric.take() {
Some(metric) => {
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

2 comments on commit 8fd535f

@rainXchaos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very innovative

@kumbxa
Copy link

@kumbxa kumbxa commented on 8fd535f Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

Please sign in to comment.