fix typo in compile_fail doctest
This commit is contained in:
parent
057050a95b
commit
0d3d6f05f1
@ -356,7 +356,7 @@
|
||||
//! // must have the same concrete type.
|
||||
//! fn make_iter(do_insert: bool) -> impl Iterator<Item = i32> {
|
||||
//! // Explicit returns to illustrate return types not matching
|
||||
//! match x {
|
||||
//! match do_insert {
|
||||
//! true => return (0..4).chain(once(42)).chain(4..8),
|
||||
//! false => return (0..4).chain(empty()).chain(4..8),
|
||||
//! }
|
||||
|
Loading…
Reference in New Issue
Block a user