Skip to content

Commit 0d0c02e

Browse files
Tweak Private Sbbf::new_with_ndv_fpp Documentation (#5718)
* Solve Inconsistency * Solve inconsistency * Solve inconsistency
1 parent d9206ba commit 0d0c02e

File tree

1 file changed

+1
-1
lines changed
  • parquet/src/bloom_filter

1 file changed

+1
-1
lines changed

parquet/src/bloom_filter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ fn num_of_bits_from_ndv_fpp(ndv: u64, fpp: f64) -> usize {
233233

234234
impl Sbbf {
235235
/// Create a new [Sbbf] with given number of distinct values and false positive probability.
236-
/// Will panic if `fpp` is greater than 1.0 or less than 0.0.
236+
/// Will return an error if `fpp` is greater than or equal to 1.0 or less than 0.0.
237237
pub(crate) fn new_with_ndv_fpp(ndv: u64, fpp: f64) -> Result<Self, ParquetError> {
238238
if !(0.0..1.0).contains(&fpp) {
239239
return Err(ParquetError::General(format!(

0 commit comments

Comments
 (0)