Skip to content

Commit 5db671c

Browse files
committed
Change ignore to no_run and add imports
1 parent cda9ba2 commit 5db671c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
//! not with an expression that creates an iterator.
2020
//! For example, the following code will loop forever over the first element of the array:
2121
//!
22-
//! ```ignore
22+
//! ```no_run
23+
//! use streaming_iterator::{convert, StreamingIterator};
2324
//! let array = [0, 1, 2, 3];
25+
//!
2426
//! while let Some(item) = convert(array.iter()).next() {
2527
//! // This is an infinite loop!
2628
//! }

0 commit comments

Comments
 (0)