Fix doc typos in count aggregation metric (#2127)

This commit is contained in:
Caleb Hattingh
2023-08-15 08:50:23 +02:00
committed by GitHub
parent 47b315ff18
commit 52d9e6f298

View File

@@ -18,7 +18,7 @@ use super::{IntermediateStats, SegmentStatsCollector};
/// ```
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CountAggregation {
/// The field name to compute the minimum on.
/// The field name to compute the count on.
pub field: String,
}
@@ -51,7 +51,7 @@ impl IntermediateCount {
pub fn merge_fruits(&mut self, other: IntermediateCount) {
self.stats.merge_fruits(other.stats);
}
/// Computes the final minimum value.
/// Computes the final count value.
pub fn finalize(&self) -> Option<f64> {
Some(self.stats.finalize().count as f64)
}