Update compiler-core/src/type_/environment.rs
@@ -676,7 +676,7 @@ impl<'a> Environment<'a> {
// If the pattern is a Discard or Var, all constructors are covered by it
Pattern::Discard { .. } => return Ok(()),
Pattern::Var { .. } => return Ok(()),
- // If the pattern is a constructor, add it to list of matched patterns
+ // If the pattern is a constructor, remove it from unmatched patterns
Pattern::Constructor {
constructor: PatternConstructor::Record { name, .. },
..
