chore: improve a comment/doc
This commit is contained in:
parent
6e2f9b9eb9
commit
4c5a449d83
|
@ -974,7 +974,8 @@ impl<'a, 'b> ExprTyper<'a, 'b> {
|
|||
)?
|
||||
};
|
||||
|
||||
// Do not perform exhaustiveness checking if user explicitly used `assert`.
|
||||
// If `expect` is explicitly used, we still check exhaustiveness but instead of returning an
|
||||
// error we emit a warning which explains that using `expect` is unnecessary.
|
||||
match kind {
|
||||
AssignmentKind::Let => {
|
||||
self.environment
|
||||
|
|
Loading…
Reference in New Issue