Skip to content

Commit a699dd6

Browse files
dashangcuntobz
andauthored
chore: fix some comments (#494)
Signed-off-by: dashangcun <jchaodaohang@foxmail.com> Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
1 parent 6b603f9 commit a699dd6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

metrics-util/src/quantile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// A quantile that has both the raw value and a human-friendly display label.
22
///
3-
/// We work with quantiles for optimal floating-point precison over percentiles, but most of the
3+
/// We work with quantiles for optimal floating-point precision over percentiles, but most of the
44
/// time, monitoring systems show us percentiles, and usually in an abbreviated form: `p99`.
55
///
66
/// On top of holding the quantile value, we calculate the familiar "p99" style of label, doing the

metrics/src/cow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ where
226226

227227
// SAFETY: We only ever hold a pointer to a borrowed value of at least the lifetime of
228228
// `Self`, or an owned value which we have ownership of (albeit indirectly when using
229-
// `Arc<T>`), so our pointer is always valid and live for derefencing.
229+
// `Arc<T>`), so our pointer is always valid and live for dereferencing.
230230
unsafe { borrowed_ptr.as_ref().unwrap() }
231231
}
232232
}

metrics/src/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl KeyName {
1919
KeyName(SharedString::const_str(name))
2020
}
2121

22-
/// Gets a reference to the strin used for this name.
22+
/// Gets a reference to the string used for this name.
2323
pub fn as_str(&self) -> &str {
2424
&self.0
2525
}

0 commit comments

Comments
 (0)