Skip to content

Commit be23694

Browse files
committed
Fix a comment
1 parent 85fdb34 commit be23694

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
@@ -852,10 +852,10 @@ enum WitnessPreference {
852852
/// We'll perform the following steps:
853853
/// 1. Start with an empty witness
854854
/// `Witness(vec![])`
855-
/// 2. Push a witness `Some(_)` against the `None`
856-
/// `Witness(vec![Some(_)])`
857-
/// 3. Push a witness `true` against the `false`
858-
/// `Witness(vec![Some(_), true])`
855+
/// 2. Push a witness `true` against the `false`
856+
/// `Witness(vec![true])`
857+
/// 3. Push a witness `Some(_)` against the `None`
858+
/// `Witness(vec![true, Some(_)])`
859859
/// 4. Apply the `Pair` constructor to the witnesses
860860
/// `Witness(vec![Pair(Some(_), true)])`
861861
///

0 commit comments

Comments
 (0)