From e1f3bec3a85ef705a5099b36c66e248d1b8930c6 Mon Sep 17 00:00:00 2001 From: gregmarr Date: Tue, 18 Jun 2024 16:06:09 -0400 Subject: [PATCH] Fix typo in error message. Signed-off-by: gregmarr --- source/to_cpp1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/to_cpp1.h b/source/to_cpp1.h index 7064b0cb4..51b4be3b0 100644 --- a/source/to_cpp1.h +++ b/source/to_cpp1.h @@ -6758,7 +6758,7 @@ class cppfront if (n.has_wildcard_type()) { errors.emplace_back( n.identifier->position(), - "an object can have an anonymous name or an anonymous type, but not both at the same type (rationale: if '_ := f();' were allowed to keep the returned object alive, that syntax would be dangerously close to '_ = f();' to discard the returned object, and such importantly opposite meanings deserve more than a one-character typo distance; and explicit discarding gets the nice syntax because it's likely more common)" + "an object can have an anonymous name or an anonymous type, but not both at the same time (rationale: if '_ := f();' were allowed to keep the returned object alive, that syntax would be dangerously close to '_ = f();' to discard the returned object, and such importantly opposite meanings deserve more than a one-character typo distance; and explicit discarding gets the nice syntax because it's likely more common)" ); return; }