From 2159053cb5819655238ccde16fb497f9e5eccba1 Mon Sep 17 00:00:00 2001 From: rvcas Date: Tue, 28 Nov 2023 16:15:24 -0500 Subject: [PATCH] fix: using the word pattern here reads better and applies more broadly like for lists --- crates/aiken-lang/src/tipo/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/aiken-lang/src/tipo/error.rs b/crates/aiken-lang/src/tipo/error.rs index 5cbddb4f..ce6ca31e 100644 --- a/crates/aiken-lang/src/tipo/error.rs +++ b/crates/aiken-lang/src/tipo/error.rs @@ -479,7 +479,7 @@ If you really meant to return that last expression, try to replace it with the f }, #[error("{}\n", if *is_let { - "I noticed a let assignment matching a value with more than one constructor.".to_string() + "I noticed a let assignment matching a value with more than one pattern.".to_string() } else { format!( "I realized that a given '{keyword_when}/{keyword_is}' expression is non-exhaustive.",