Skip to content

Commit

Permalink
docs: update document of folds (#11705)
Browse files Browse the repository at this point in the history
  • Loading branch information
reswqa authored Oct 13, 2023
1 parent 7134442 commit 26ea3fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/rust/user-guide/expressions/folds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.lazy()
.filter(fold_exprs(
lit(true),
|acc, x| Some(acc.bitand(&x)),
|acc, x| acc.bitand(&x).map(Some),
[col("*").gt(1)],
))
.collect()?;
Expand Down

0 comments on commit 26ea3fa

Please sign in to comment.