Skip to content

Commit 86b9925

Browse files
authored
docs(metrics): typo for finite64 saturating_sub doc (#4582)
#skip-changelog
1 parent d4cf6ea commit 86b9925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relay-metrics/src/finite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl FiniteF64 {
7272
Self((self.0 + other.0).clamp(f64::MIN, f64::MAX))
7373
}
7474

75-
/// Adds two numbers, saturating at the maximum and minimum representable values.
75+
/// Subtracts two numbers, saturating at the maximum and minimum representable values.
7676
pub fn saturating_sub(self, other: Self) -> Self {
7777
Self((self.0 - other.0).clamp(f64::MIN, f64::MAX))
7878
}

0 commit comments

Comments
 (0)