Skip to content

Commit 8fd535f

Browse files
authored
Fix code messages errors (#3197)
fix typos in comments
1 parent e35c25f commit 8fd535f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

linera-base/src/prometheus_util.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::time::Instant;
1212

1313
const LINERA_NAMESPACE: &str = "linera";
1414

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

25-
/// Wrapper arount prometheus register_histogram_vec! macro which also sets the linera namespace
25+
/// Wrapper around prometheus register_histogram_vec! macro which also sets the linera namespace
2626
pub fn register_histogram_vec(
2727
name: &str,
2828
description: &str,
@@ -70,14 +70,14 @@ impl<Metric> ActiveMeasurementGuard<'_, Metric>
7070
where
7171
Metric: MeasureLatency,
7272
{
73-
/// Finishes the measurement, updates the `Metric` and the returns the measured latency in
73+
/// Finishes the measurement, updates the `Metric` and returns the measured latency in
7474
/// milliseconds.
7575
pub fn finish(mut self) -> f64 {
7676
self.finish_by_ref()
7777
}
7878

7979
/// Finishes the measurement without taking ownership of this [`ActiveMeasurementGuard`],
80-
/// updates the `Metric` and the returns the measured latency in milliseconds.
80+
/// updates the `Metric` and returns the measured latency in milliseconds.
8181
fn finish_by_ref(&mut self) -> f64 {
8282
match self.metric.take() {
8383
Some(metric) => {

linera-sdk/src/abis/fungible.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl InitialStateBuilder {
130130
}
131131

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

0 commit comments

Comments
 (0)