Add missing periods to diagnostics. (#3380)

This commit is contained in:
Richard Smith authored and GitHub committed 2023-11-10 20:29:22 +00:00
1 parent afd6d85610
commit 4aa6a6894d
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ auto HandleAddress(Context& context, Parse::Node parse_node) -> bool {
context.insts().Set(self_param_id, *self_param);
} else {
CARBON_DIAGNOSTIC(AddrOnNonSelfParameter, Error,
"`addr` can only be applied to a `self` parameter");
"`addr` can only be applied to a `self` parameter.");
context.emitter().Emit(parse_node, AddrOnNonSelfParameter);
}
return true;
@@ -43,7 +43,7 @@ auto HandlePatternBinding(Context& context, Parse::Node parse_node) -> bool {
Parse::NodeKind::ImplicitParameterListStart) {
CARBON_DIAGNOSTIC(
SelfOutsideImplicitParameterList, Error,
"`self` can only be declared in an implicit parameter list");
"`self` can only be declared in an implicit parameter list.");
context.emitter().Emit(parse_node, SelfOutsideImplicitParameterList);
}
context.AddInstAndPush(