From 6ad8139c39d4ef8474237ec5d1a2fc8b98707f27 Mon Sep 17 00:00:00 2001 From: Andronik Date: Sat, 15 Jan 2022 15:11:31 +0100 Subject: [PATCH] spellcheck fixes (#4724) --- polkadot/runtime/metrics/src/with_runtime_metrics.rs | 4 ++-- polkadot/runtime/metrics/src/without_runtime_metrics.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/runtime/metrics/src/with_runtime_metrics.rs b/polkadot/runtime/metrics/src/with_runtime_metrics.rs index 2480cf79a2..f95b659a06 100644 --- a/polkadot/runtime/metrics/src/with_runtime_metrics.rs +++ b/polkadot/runtime/metrics/src/with_runtime_metrics.rs @@ -31,7 +31,7 @@ use primitives::v1::{ use sp_std::prelude::*; /// Holds a set of counters that have different values for their labels, -/// like Prometheus CounterVec. +/// like Prometheus `CounterVec`. pub struct CounterVec { name: &'static str, } @@ -87,7 +87,7 @@ impl CounterVec { 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. pub fn with_label_values(&self, label_values: &[&'static str]) -> LabeledMetric { LabeledMetric { name: self.name, label_values: label_values.into() } diff --git a/polkadot/runtime/metrics/src/without_runtime_metrics.rs b/polkadot/runtime/metrics/src/without_runtime_metrics.rs index 95f8c070a5..140ea7f651 100644 --- a/polkadot/runtime/metrics/src/without_runtime_metrics.rs +++ b/polkadot/runtime/metrics/src/without_runtime_metrics.rs @@ -20,9 +20,9 @@ use primitives::v1::metric_definitions::{CounterDefinition, CounterVecDefinition}; -/// A dummy Counter. +/// A dummy `Counter`. pub struct Counter; -/// A dummy CounterVec. +/// A dummy `CounterVec`. pub struct CounterVec; /// Dummy implementation.