Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiy0006 committed Jul 22, 2024
1 parent 528745e commit 789651d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions generator/internal/format_method_comments.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ std::string FormatStartMethodComments(bool is_method_deprecated) {
// clang-format on
)""";

auto constexpr comment_body = R"""(
auto constexpr kCommentBody = R"""(
/// @copybrief $method_name$
///
/// Specifying the [`NoAwaitTag`] immediately returns the
Expand All @@ -291,7 +291,7 @@ std::string FormatStartMethodComments(bool is_method_deprecated) {
///)"""
: "";

return absl::StrCat(kMethodCommentsPrefix, deprecation_comment, comment_body,
return absl::StrCat(kMethodCommentsPrefix, deprecation_comment, kCommentBody,
kMethodCommentsSuffix);
}

Expand All @@ -303,7 +303,7 @@ std::string FormatAwaitMethodComments(bool is_method_deprecated) {
// clang-format on
)""";

auto constexpr comment_body = R"""(
auto constexpr kCommentBody = R"""(
/// @copybrief $method_name$
///
/// This method accepts a `$longrunning_operation_type$` that corresponds
Expand All @@ -318,7 +318,7 @@ std::string FormatAwaitMethodComments(bool is_method_deprecated) {
///)"""
: "";

return absl::StrCat(kMethodCommentsPrefix, deprecation_comment, comment_body,
return absl::StrCat(kMethodCommentsPrefix, deprecation_comment, kCommentBody,
kMethodCommentsSuffix);
}

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/edgenetwork/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main(int argc, char* argv[]) try {
auto client =
edgenetwork::EdgeNetworkClient(edgenetwork::MakeEdgeNetworkConnection());

for (auto r : client.ListZones(location.FullName())) {
for (auto r : client.ListNetworks(location.FullName())) {
if (!r) throw std::move(r).status();
std::cout << r->DebugString() << "\n";
}
Expand Down

0 comments on commit 789651d

Please sign in to comment.