Update src/librustc_mir/transform/early_otherwise_branch.rs

Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
Simon Vandel Sillesen 2020-09-19 23:27:20 +02:00
parent 5fb32c2e33
commit 5cc93950ac

View File

@ -20,7 +20,7 @@ use std::{borrow::Cow, fmt::Debug};
/// let x: Option<()>;
/// let y: Option<()>;
/// let discriminant_x = // get discriminant of x
/// let discriminant_y = // get discriminant of x
/// let discriminant_y = // get discriminant of y
/// if discriminant_x != discriminant_y {1} else {0}
/// ```
pub struct EarlyOtherwiseBranch;