This is an automated email from the ASF dual-hosted git repository. jiashunzhu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new 387e91e fix Describe in docs new 2bd98fc Merge pull request #1413 from guodongxiaren/fix_doc 387e91e is described below commit 387e91e85f2114b9cfde8e5cd93f73e21056a2de Author: guodongxiaren <879231...@qq.com> AuthorDate: Mon May 24 22:59:44 2021 +0800 fix Describe in docs 文档中的代码示例写错了,需要实现的函数名应为Describe --- docs/cn/status.md | 2 +- docs/en/status.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cn/status.md b/docs/cn/status.md index 7a59cea..948cdce 100644 --- a/docs/cn/status.md +++ b/docs/cn/status.md @@ -26,7 +26,7 @@ class MyService : public XXXService, public brpc::Describable { public: ... - void DescribeStatus(std::ostream& os, const brpc::DescribeOptions& options) const { + void Describe(std::ostream& os, const brpc::DescribeOptions& options) const { os << "my_status: blahblah"; } }; diff --git a/docs/en/status.md b/docs/en/status.md index a1b5cfe..be35bcd 100644 --- a/docs/en/status.md +++ b/docs/en/status.md @@ -26,7 +26,7 @@ Users may customize descriptions on /status by letting the service implement [br class MyService : public XXXService, public brpc::Describable { public: ... - void DescribeStatus(std::ostream& os, const brpc::DescribeOptions& options) const { + void Describe(std::ostream& os, const brpc::DescribeOptions& options) const { os << "my_status: blahblah"; } }; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org