diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-18 14:21:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-18 14:21:58 +0900 |
| commit | c1ee9a3a03be7114044fd761110cc97f6cc845e7 (patch) | |
| tree | 8d6d8e2d0a029b1eeeca159743e753009e37a4f1 | |
| parent | 07faa2e32c83a6af690391830a35c09ee7d1b050 (diff) | |
| parent | 0d3d6f05f15bcac8a565d7ed0206469c8df6439a (diff) | |
| download | rust-c1ee9a3a03be7114044fd761110cc97f6cc845e7.tar.gz rust-c1ee9a3a03be7114044fd761110cc97f6cc845e7.zip | |
Rollup merge of #87183 - RalfJung:option-doctest, r=jyn514
fix typo in compile_fail doctest Fixes a typo introduced by https://github.com/rust-lang/rust/pull/86211. For some reason this typo makes Miri go all crazy when running libcore doctests (https://github.com/rust-lang/miri/issues/1852). Kudos to ``@hyd-dev`` for noticing the typo. Cc ``@tlyu`` ``@joshtriplett``
| -rw-r--r-- | library/core/src/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<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), //! } |
