chore: improve a comment/doc

This commit is contained in:
rvcas 2024-02-13 19:46:34 -05:00
parent 6e2f9b9eb9
commit 4c5a449d83
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 2 additions and 1 deletions

View File

@ -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