Skip to content

Commit a38ff8a

Browse files
committed
fixup! ayyyy one pass
1 parent fd2d6ce commit a38ff8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_mir_build/src/thir/pattern/usefulness.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
//! reachability for each subpattern and exhaustiveness for the whole match.
4040
//!
4141
//!
42-
//! # Illustrative Example
42+
//! # Example
4343
//!
4444
//! A picture is worth a thousand words. Let's watch the algorithm run before we dig into concepts.
4545
//!
46-
//! ```rust,ignore
46+
//! ```rust,ignore(example)
4747
//! match x {
4848
//! Pair(Some(0), _) => 1,
4949
//! Pair(_, false) => 2,
@@ -96,7 +96,7 @@
9696
//! │ │ │ │
9797
//! │ │ │ │ Dig into `true`:
9898
//! │ │ │ ├─┐ Patterns:
99-
//! │ │ │ │ │ <no rows left>
99+
//! │ │ │ │ │ // no rows left
100100
//! │ │ │ │ │
101101
//! │ │ │ │ │ We have found an unmatched value! This gives us a witness.
102102
//! │ │ │ │ │ New witnesses:
@@ -130,7 +130,7 @@
130130
//! │ │ │
131131
//! │ │ │ Dig into `true`:
132132
//! │ │ ├─┐ Patterns:
133-
//! │ │ │ │ <no rows left>
133+
//! │ │ │ │ // no rows left
134134
//! │ │ │ │
135135
//! │ │ │ │ We have found an unmatched value! This gives us a witness.
136136
//! │ │ │ │ New witnesses:

0 commit comments

Comments
 (0)