Skip to content

Commit 5cc9395

Browse files
simonvandellnicola
andcommitted
Update src/librustc_mir/transform/early_otherwise_branch.rs
Co-authored-by: Laurențiu Nicola <[email protected]>
1 parent 5fb32c2 commit 5cc9395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/early_otherwise_branch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::{borrow::Cow, fmt::Debug};
2020
/// let x: Option<()>;
2121
/// let y: Option<()>;
2222
/// let discriminant_x = // get discriminant of x
23-
/// let discriminant_y = // get discriminant of x
23+
/// let discriminant_y = // get discriminant of y
2424
/// if discriminant_x != discriminant_y {1} else {0}
2525
/// ```
2626
pub struct EarlyOtherwiseBranch;

0 commit comments

Comments
 (0)