Skip to content

Commit a104321

Browse files
Philippe-Choletjswrenn
authored andcommitted
fold_ok small doctest: no run
But it should compile at it is code.
1 parent 8cef71f commit a104321

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,9 @@ pub trait Itertools: Iterator {
23732373
/// For example the sequence *Ok(1), Ok(2), Ok(3)* will result in a
23742374
/// computation like this:
23752375
///
2376-
/// ```ignore
2376+
/// ```no_run
2377+
/// # let start = 0;
2378+
/// # let f = |x, y| x + y;
23772379
/// let mut accum = start;
23782380
/// accum = f(accum, 1);
23792381
/// accum = f(accum, 2);

0 commit comments

Comments
 (0)