diff --git a/zenith_metrics/src/lib.rs b/zenith_metrics/src/lib.rs index b01e80d873..59a8a31c9e 100644 --- a/zenith_metrics/src/lib.rs +++ b/zenith_metrics/src/lib.rs @@ -46,7 +46,7 @@ pub fn set_common_metrics_prefix(prefix: &'static str) { } /// Prepends a prefix to a common metric name so they are distinguished between -/// different services, see https://github.com/zenithdb/zenith/pull/681 +/// different services, see /// A call to set_common_metrics_prefix() is necessary prior to calling this. pub fn new_common_metric_name(unprefixed_metric_name: &str) -> String { // Not unwrap() because metrics may be initialized after multiple threads have been started. diff --git a/zenith_utils/src/vec_map.rs b/zenith_utils/src/vec_map.rs index 0fd33bf489..4e2c827b47 100644 --- a/zenith_utils/src/vec_map.rs +++ b/zenith_utils/src/vec_map.rs @@ -55,7 +55,7 @@ impl VecMap { } /// Add a key value pair to the map. - /// If [`key`] is less than or equal to the current maximum key + /// If `key` is less than or equal to the current maximum key /// the pair will not be added and InvalidKey error will be returned. pub fn append(&mut self, key: K, value: V) -> Result<(), InvalidKey> { if let Some((last_key, _last_value)) = self.0.last() { @@ -69,7 +69,7 @@ impl VecMap { } /// Update the maximum key value pair or add a new key value pair to the map. - /// If [`key`] is less than the current maximum key no updates or additions + /// If `key` is less than the current maximum key no updates or additions /// will occur and InvalidKey error will be returned. pub fn append_or_update_last(&mut self, key: K, mut value: V) -> Result, InvalidKey> { if let Some((last_key, last_value)) = self.0.last_mut() { @@ -89,8 +89,8 @@ impl VecMap { /// Split the map into two. /// - /// The left map contains everything before [`cutoff`] (exclusive). - /// Right map contains [`cutoff`] and everything after (inclusive). + /// The left map contains everything before `cutoff` (exclusive). + /// Right map contains `cutoff` and everything after (inclusive). pub fn split_at(&self, cutoff: &K) -> (Self, Self) where K: Clone, @@ -107,9 +107,9 @@ impl VecMap { ) } - /// Move items from [`other`] to the end of [`self`], leaving [`other`] empty. - /// If any keys in [`other`] is less than or equal to any key in [`self`], - /// [`InvalidKey`] error will be returned and no mutation will occur. + /// Move items from `other` to the end of `self`, leaving `other` empty. + /// If any keys in `other` is less than or equal to any key in `self`, + /// `InvalidKey` error will be returned and no mutation will occur. pub fn extend(&mut self, other: &mut Self) -> Result<(), InvalidKey> { let self_last_opt = self.0.last().map(extract_key); let other_first_opt = other.0.last().map(extract_key);