Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chenBright committed Sep 3, 2024
1 parent 5265d4b commit 56c4a57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/cn/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ public:
// Get `RpcPBMessages' according to `service' and `method'.
// Common practice to create protobuf message:
// service.GetRequestPrototype(&method).New() -> request;
// service.GetRequestPrototype(&method).New() -> response.
// service.GetResponsePrototype(&method).New() -> response.
virtual RpcPBMessages* Get(const ::google::protobuf::Service& service,
const ::google::protobuf::MethodDescriptor& method) = 0;
// Return `RpcPBMessages' to factory.
Expand Down
2 changes: 1 addition & 1 deletion docs/en/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ public:
// Get `RpcPBMessages' according to `service' and `method'.
// Common practice to create protobuf message:
// service.GetRequestPrototype(&method).New() -> request;
// service.GetRequestPrototype(&method).New() -> response.
// service.GetResponsePrototype(&method).New() -> response.
virtual RpcPBMessages* Get(const ::google::protobuf::Service& service,
const ::google::protobuf::MethodDescriptor& method) = 0;
// Return `RpcPBMessages' to factory.
Expand Down
2 changes: 1 addition & 1 deletion src/brpc/rpc_pb_message_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RpcPBMessageFactory {
// Get `RpcPBMessages' according to `service' and `method'.
// Common practice to create protobuf message:
// service.GetRequestPrototype(&method).New() -> request;
// service.GetRequestPrototype(&method).New() -> response.
// service.GetResponsePrototype(&method).New() -> response.
virtual RpcPBMessages* Get(const ::google::protobuf::Service& service,
const ::google::protobuf::MethodDescriptor& method) = 0;
// Return `RpcPBMessages' to factory.
Expand Down

0 comments on commit 56c4a57

Please sign in to comment.