We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 057050a commit 0d3d6f0Copy full SHA for 0d3d6f0
library/core/src/option.rs
@@ -356,7 +356,7 @@
356
//! // must have the same concrete type.
357
//! fn make_iter(do_insert: bool) -> impl Iterator<Item = i32> {
358
//! // Explicit returns to illustrate return types not matching
359
-//! match x {
+//! match do_insert {
360
//! true => return (0..4).chain(once(42)).chain(4..8),
361
//! false => return (0..4).chain(empty()).chain(4..8),
362
//! }
0 commit comments