Fixed typos in local bindings

This commit is contained in:
Vincent Esche 2021-01-08 15:41:32 +01:00
parent 4702c01553
commit c8c2bd097a
3 changed files with 7 additions and 7 deletions

View file

@ -379,7 +379,7 @@ pub fn record_literal_missing_fields(
id: ExprId,
expr: &Expr,
) -> Option<(VariantId, Vec<LocalFieldId>, /*exhaustive*/ bool)> {
let (fields, exhausitve) = match expr {
let (fields, exhaustive) = match expr {
Expr::RecordLit { path: _, fields, spread } => (fields, spread.is_none()),
_ => return None,
};
@ -400,7 +400,7 @@ pub fn record_literal_missing_fields(
if missed_fields.is_empty() {
return None;
}
Some((variant_def, missed_fields, exhausitve))
Some((variant_def, missed_fields, exhaustive))
}
pub fn record_pattern_missing_fields(