From 0d3d6f05f15bcac8a565d7ed0206469c8df6439a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 16 Jul 2021 10:31:56 +0200 Subject: [PATCH] fix typo in compile_fail doctest --- library/core/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/option.rs b/library/core/src/option.rs index b7af3ea8c1a..c27db0767ac 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -356,7 +356,7 @@ //! // must have the same concrete type. //! fn make_iter(do_insert: bool) -> impl Iterator { //! // 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), //! }