chore: improve a comment/doc

This commit is contained in:
rvcas
2024-02-13 19:46:34 -05:00
parent 6e2f9b9eb9
commit 4c5a449d83

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