mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 21:56:38 +00:00
Add missing periods to diagnostics. (#3380)
This commit is contained in:
1 parent
afd6d85610
commit
4aa6a6894d
3 files changed
+7
-7
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user