Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
danakj committed Jan 20, 2025
1 parent db471d1 commit d0508d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toolchain/check/handle_binding_pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static auto HandleAnyBindingPattern(Context& context, Parse::NodeId node_id,
// type itself.
if (context_node_kind == Parse::NodeKind::ImplicitParamListStart) {
CARBON_DIAGNOSTIC(ChoiceAlternativeImplicitParams, Error,
"choice alterantive with implicit parameters");
"choice alternative with implicit parameters");
context.emitter().Emit(node_id, ChoiceAlternativeImplicitParams);
had_error = true;
}
Expand Down
3 changes: 2 additions & 1 deletion toolchain/check/node_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ class NodeStack {
RequiredParseKind;
}

// Returns whether any node on the stack above the current node is a given kind.
// Returns whether any node on the stack above the current node is a given
// kind.
template <const Parse::NodeKind& RequiredParseKind>
auto PeekContains() const -> bool {
CARBON_CHECK(stack_.size() >= 2);
Expand Down

0 comments on commit d0508d5

Please sign in to comment.