Skip to content

Commit ba5eaa9

Browse files
authored
Fix typo in error message. (#1125)
Signed-off-by: gregmarr <[email protected]>
1 parent 54edaba commit ba5eaa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/to_cpp1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6755,7 +6755,7 @@ class cppfront
67556755
if (n.has_wildcard_type()) {
67566756
errors.emplace_back(
67576757
n.identifier->position(),
6758-
"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)"
6758+
"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)"
67596759
);
67606760
return;
67616761
}

0 commit comments

Comments
 (0)