This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git
The following commit(s) were added to refs/heads/main by this push:
new 583ac18 chore: correct CountMinSketch::suggest_num_hashes panic docs
(#73)
583ac18 is described below
commit 583ac180362a18a4f3f57b651bb99d0000e65729
Author: tison <[email protected]>
AuthorDate: Mon Jan 19 16:47:35 2026 +0800
chore: correct CountMinSketch::suggest_num_hashes panic docs (#73)
---
datasketches/src/countmin/sketch.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datasketches/src/countmin/sketch.rs
b/datasketches/src/countmin/sketch.rs
index 4f8225b..321c836 100644
--- a/datasketches/src/countmin/sketch.rs
+++ b/datasketches/src/countmin/sketch.rs
@@ -129,7 +129,7 @@ impl CountMinSketch {
///
/// # Panics
///
- /// Panics if `confidence` is not in (0, 1].
+ /// Panics if `confidence` is not in [0, 1].
pub fn suggest_num_hashes(confidence: f64) -> u8 {
assert!(
(0.0..=1.0).contains(&confidence),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]