Fix c++ formatting

pull/36000/head
tony 11 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");
}
last_was_empty = false;
// If the comment has an extra slash at the start then this can cause the C# compiler
// to complain when generating the XML documentation
// Issue https://github.com/grpc/grpc/issues/35905
// If the comment has an extra slash at the start then this can cause the
// C# compiler to complain when generating the XML documentation Issue
// [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] == '/') {
line.replace(0,1,"/");
line.replace(0, 1, "/");
}
printer->Print("///$line$\n", "line", line);
}

Loading…
Cancel
Save