fix typo in compile_fail doctest

This commit is contained in:
Ralf Jung 2021-07-16 10:31:56 +02:00
parent 057050a95b
commit 0d3d6f05f1

View File

@ -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),
//! }