Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion relay-metrics/src/finite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl FiniteF64 {
Self((self.0 + other.0).clamp(f64::MIN, f64::MAX))
}

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