Fix c++ formatting

pull/36000/head
tony 12 months ago
parent 37193da192
commit ca1e0cf299
  1. 8
      src/compiler/csharp_generator.cc

@ -82,11 +82,11 @@ bool GenerateDocCommentBodyImpl(grpc::protobuf::io::Printer* printer,
printer->Print("///\n"); printer->Print("///\n");
} }
last_was_empty = false; last_was_empty = false;
// If the comment has an extra slash at the start then this can cause the C# compiler // If the comment has an extra slash at the start then this can cause the
// to complain when generating the XML documentation // C# compiler to complain when generating the XML documentation Issue
// Issue https://github.com/grpc/grpc/issues/35905 // [https://github.com/grpc/grpc/issues/35905](https://www.google.com/url?q=https://github.com/grpc/grpc/issues/35905&sa=D)
if (line[0] == '/') { if (line[0] == '/') {
line.replace(0,1,"/"); line.replace(0, 1, "/");
} }
printer->Print("///$line$\n", "line", line); printer->Print("///$line$\n", "line", line);
} }

Loading…
Cancel
Save