mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 09:08:30 +00:00
Fix diagnostic style issues (#7982)
Remove trailing `.`s and leading capitalization from diagnostics, and separate clauses with `;` rather than `.`, per https://docs.carbon-lang.dev/toolchain/docs/diagnostics.html#diagnostic-message-style-guide
This commit is contained in:
1 parent
7beb29f8b2
commit
d87891f3a6
11 files changed
+39
-39
No files matched your search
@@ -133,7 +133,7 @@ auto HandleBindingPattern(Context& context) -> void {
|
||||
if (state.in_field_shorthand_pattern) {
|
||||
CARBON_DIAGNOSTIC(
|
||||
AnonymousBindingInStructPattern, Error,
|
||||
"Anonymous binding found in struct pattern. Use `.field = "
|
||||
"anonymous binding found in struct pattern; use `.field = "
|
||||
"_: field_type` or `unused field: field_type`");
|
||||
context.emitter().Emit(*context.position(),
|
||||
AnonymousBindingInStructPattern);
|
||||
|
||||
Reference in new issue
Block a user