diff --git a/docs/src/rust/user-guide/expressions/folds.rs b/docs/src/rust/user-guide/expressions/folds.rs index b851557f8e37..9312735b9284 100644 --- a/docs/src/rust/user-guide/expressions/folds.rs +++ b/docs/src/rust/user-guide/expressions/folds.rs @@ -25,7 +25,7 @@ fn main() -> Result<(), Box> { .lazy() .filter(fold_exprs( lit(true), - |acc, x| Some(acc.bitand(&x)), + |acc, x| acc.bitand(&x).map(Some), [col("*").gt(1)], )) .collect()?;