spellcheck fixes (#4724)

This commit is contained in:
Andronik
2022-01-15 15:11:31 +01:00
committed by GitHub
parent fc594e5254
commit 6ad8139c39
2 changed files with 4 additions and 4 deletions
@@ -31,7 +31,7 @@ use primitives::v1::{
use sp_std::prelude::*; use sp_std::prelude::*;
/// Holds a set of counters that have different values for their labels, /// Holds a set of counters that have different values for their labels,
/// like Prometheus CounterVec. /// like Prometheus `CounterVec`.
pub struct CounterVec { pub struct CounterVec {
name: &'static str, name: &'static str,
} }
@@ -87,7 +87,7 @@ impl CounterVec {
CounterVec { name: definition.name } CounterVec { name: definition.name }
} }
/// Returns a LabeledMetric instance that provides an interface for incrementing /// Returns a `LabeledMetric` instance that provides an interface for incrementing
/// the metric. /// the metric.
pub fn with_label_values(&self, label_values: &[&'static str]) -> LabeledMetric { pub fn with_label_values(&self, label_values: &[&'static str]) -> LabeledMetric {
LabeledMetric { name: self.name, label_values: label_values.into() } LabeledMetric { name: self.name, label_values: label_values.into() }
@@ -20,9 +20,9 @@
use primitives::v1::metric_definitions::{CounterDefinition, CounterVecDefinition}; use primitives::v1::metric_definitions::{CounterDefinition, CounterVecDefinition};
/// A dummy Counter. /// A dummy `Counter`.
pub struct Counter; pub struct Counter;
/// A dummy CounterVec. /// A dummy `CounterVec`.
pub struct CounterVec; pub struct CounterVec;
/// Dummy implementation. /// Dummy implementation.