This is an automated email from the ASF dual-hosted git repository. xiaofeng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push: new f19ae4f2 Fix english typos (#2496) f19ae4f2 is described below commit f19ae4f253823f4dd6034e4089ee34305ed28def Author: Didier Raboud <o...@raksha.ch> AuthorDate: Fri Jan 5 06:59:22 2024 +0100 Fix english typos (#2496) * Fix ploting -> plotting typo * Fix is not enable -> is not enabled typo * Fix allowd -> allowed typo * Fix paramters -> parameters typo * Fix reponse -> response typo * Fix seperated -> separated typo --- docs/cn/streaming_rpc.md | 2 +- docs/en/bvar_c++.md | 2 +- docs/en/streaming_rpc.md | 2 +- src/brpc/builtin/get_js_service.h | 2 +- src/brpc/builtin/pprof_perl.cpp | 4 ++-- src/brpc/builtin/vars_service.cpp | 4 ++-- src/brpc/details/http_message.cpp | 2 +- src/brpc/policy/nacos_naming_service.cpp | 2 +- src/brpc/server.cpp | 4 ++-- src/brpc/stream.cpp | 2 +- src/brpc/stream.h | 2 +- src/butil/scoped_generic.h | 2 +- src/bvar/variable.cpp | 4 ++-- tools/pprof | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/cn/streaming_rpc.md b/docs/cn/streaming_rpc.md index 01c7241d..1480b83b 100644 --- a/docs/cn/streaming_rpc.md +++ b/docs/cn/streaming_rpc.md @@ -46,7 +46,7 @@ struct StreamOptions // default: 128 size_t messages_in_batch; - // Handle input message, if handler is NULL, the remote side is not allowd to + // Handle input message, if handler is NULL, the remote side is not allowed to // write any message, who will get EBADF on writing // default: NULL StreamInputHandler* handler; diff --git a/docs/en/bvar_c++.md b/docs/en/bvar_c++.md index d505e9d8..8bd12efb 100644 --- a/docs/en/bvar_c++.md +++ b/docs/en/bvar_c++.md @@ -217,7 +217,7 @@ Common needs for exporting are querying by HTTP API and writing into local file, | bvar_dump_include | "" | Dump bvar matching these wildcards(separated by comma), empty means including all | | bvar_dump_interval | 10 | Seconds between consecutive dump | | bvar_dump_prefix | \<app\> | Every dumped name starts with this prefix | - | bvar_dump_tabs | \<check the code\> | Dump bvar into different tabs according to the filters (seperated by semicolon), format: *(tab_name=wildcards) | + | bvar_dump_tabs | \<check the code\> | Dump bvar into different tabs according to the filters (separated by semicolon), format: *(tab_name=wildcards) | when the bvar_dump_file is not empty, a background thread will be started to update `bvar_dump_file` for the specified time interval called `bvar_dump_interval` , including all the bvar which is matched by `bvar_dump_include` while not matched by `bvar_dump_exclude` diff --git a/docs/en/streaming_rpc.md b/docs/en/streaming_rpc.md index 626481d3..a1494bc0 100644 --- a/docs/en/streaming_rpc.md +++ b/docs/en/streaming_rpc.md @@ -46,7 +46,7 @@ struct StreamOptions // default: 128 size_t messages_in_batch; - // Handle input message, if handler is NULL, the remote side is not allowd to + // Handle input message, if handler is NULL, the remote side is not allowed to // write any message, who will get EBADF on writing // default: NULL StreamInputHandler* handler; diff --git a/src/brpc/builtin/get_js_service.h b/src/brpc/builtin/get_js_service.h index 89f7bf0e..8b991c3c 100644 --- a/src/brpc/builtin/get_js_service.h +++ b/src/brpc/builtin/get_js_service.h @@ -26,7 +26,7 @@ namespace brpc { // Get packed js. // "/js/sorttable" : http://www.kryogenix.org/code/browser/sorttable/ // "/js/jquery_min" : jquery 1.8.3 -// "/js/flot_min" : ploting library for jquery. +// "/js/flot_min" : plotting library for jquery. class GetJsService : public ::brpc::js { public: void sorttable(::google::protobuf::RpcController* controller, diff --git a/src/brpc/builtin/pprof_perl.cpp b/src/brpc/builtin/pprof_perl.cpp index 1ea5903b..798df7bd 100644 --- a/src/brpc/builtin/pprof_perl.cpp +++ b/src/brpc/builtin/pprof_perl.cpp @@ -4832,7 +4832,7 @@ const char* pprof_perl() { " } else {\n" " # MapSymbolsWithNM tags each routine with its starting address,\n" " # useful in case the image has multiple occurrences of this\n" - " # routine. (It uses a syntax that resembles template paramters,\n" + " # routine. (It uses a syntax that resembles template parameters,\n" " # that are automatically stripped out by ShortFunctionName().)\n" " # addr2line does not provide the same information. So we check\n" " # if nm disambiguated our symbol, and if so take the annotated\n" @@ -5146,7 +5146,7 @@ const char* pprof_perl() { "\n" " # Tag this routine with the starting address in case the image\n" " # has multiple occurrences of this routine. We use a syntax\n" - " # that resembles template paramters that are automatically\n" + " # that resembles template parameters that are automatically\n" " # stripped out by ShortFunctionName()\n" " $this_routine .= \"<$start_val>\";\n" "\n" diff --git a/src/brpc/builtin/vars_service.cpp b/src/brpc/builtin/vars_service.cpp index f60c49f7..00235e21 100644 --- a/src/brpc/builtin/vars_service.cpp +++ b/src/brpc/builtin/vars_service.cpp @@ -82,7 +82,7 @@ void PutVarsHeading(std::ostream& os, bool expand_all) { "<script type=\"text/javascript\">\n" // Mark if a bvar was ever clicked. "var everEnabled = {}\n" - // Mark if a bvar was enabled ploting + // Mark if a bvar was enabled plotting "var enabled = {}\n" // the bvar under cursor "var hovering_var = \"\"\n" @@ -152,7 +152,7 @@ void PutVarsHeading(std::ostream& os, bool expand_all) { " $(\".default_expand\").click();\n") << "}\n" - // options for ploting. + // options for plotting. "var trendOptions = {\n" " colors: ['#F0D06E','#F0B06E','#F0A06E','#F0906E','#F0806E'],\n" " legend: {show:false},\n" diff --git a/src/brpc/details/http_message.cpp b/src/brpc/details/http_message.cpp index fa367434..0a6b4076 100644 --- a/src/brpc/details/http_message.cpp +++ b/src/brpc/details/http_message.cpp @@ -566,7 +566,7 @@ void MakeRawHttpRequest(butil::IOBuf* request, //empty field-value. //rfc 7231#sec4.3: //the request-target consists of only the host name and port number of - //the tunnel destination, seperated by a colon. For example, + //the tunnel destination, separated by a colon. For example, //Host: server.example.com:80 if (h->GetHeader("host") == NULL) { os << "Host: "; diff --git a/src/brpc/policy/nacos_naming_service.cpp b/src/brpc/policy/nacos_naming_service.cpp index 0431626e..c4cc46b2 100644 --- a/src/brpc/policy/nacos_naming_service.cpp +++ b/src/brpc/policy/nacos_naming_service.cpp @@ -182,7 +182,7 @@ int NacosNamingService::GetServerNodes(const char *service_name, if (it_enabled == host.MemberEnd() || !(it_enabled->value.IsBool()) || !(it_enabled->value.GetBool())) { LOG(INFO) << "nacos " << ip.GetString() << ":" << port.GetInt() - << " is not enable"; + << " is not enabled"; continue; } diff --git a/src/brpc/server.cpp b/src/brpc/server.cpp index ac8f29c9..ff717f80 100644 --- a/src/brpc/server.cpp +++ b/src/brpc/server.cpp @@ -2169,7 +2169,7 @@ int Server::ResetMaxConcurrency(int max_concurrency) { AdaptiveMaxConcurrency& Server::MaxConcurrencyOf(MethodProperty* mp) { if (IsRunning()) { - LOG(WARNING) << "MaxConcurrencyOf is only allowd before Server started"; + LOG(WARNING) << "MaxConcurrencyOf is only allowed before Server started"; return g_default_max_concurrency_of_method; } if (mp->status == NULL) { @@ -2183,7 +2183,7 @@ AdaptiveMaxConcurrency& Server::MaxConcurrencyOf(MethodProperty* mp) { int Server::MaxConcurrencyOf(const MethodProperty* mp) const { if (IsRunning()) { - LOG(WARNING) << "MaxConcurrencyOf is only allowd before Server started"; + LOG(WARNING) << "MaxConcurrencyOf is only allowed before Server started"; return g_default_max_concurrency_of_method; } if (mp == NULL || mp->status == NULL) { diff --git a/src/brpc/stream.cpp b/src/brpc/stream.cpp index a9126537..b311c4b7 100644 --- a/src/brpc/stream.cpp +++ b/src/brpc/stream.cpp @@ -761,7 +761,7 @@ int StreamAccept(StreamId* response_stream, Controller &cntl, const StreamOptions* options) { if (cntl._response_stream != INVALID_STREAM_ID) { - LOG(ERROR) << "Can't create reponse stream more than once"; + LOG(ERROR) << "Can't create response stream more than once"; return -1; } if (response_stream == NULL) { diff --git a/src/brpc/stream.h b/src/brpc/stream.h index 410a5a09..90965f37 100644 --- a/src/brpc/stream.h +++ b/src/brpc/stream.h @@ -76,7 +76,7 @@ struct StreamOptions { // default: 128 size_t messages_in_batch; - // Handle input message, if handler is NULL, the remote side is not allowd to + // Handle input message, if handler is NULL, the remote side is not allowed to // write any message, who will get EBADF on writting // default: NULL StreamInputHandler* handler; diff --git a/src/butil/scoped_generic.h b/src/butil/scoped_generic.h index d6d71971..d92c095b 100644 --- a/src/butil/scoped_generic.h +++ b/src/butil/scoped_generic.h @@ -94,7 +94,7 @@ class ScopedGeneric { } // Frees the currently owned object, if any. Then takes ownership of a new - // object, if given. Self-resets are not allowd as on scoped_ptr. See + // object, if given. Self-resets are not allowed as on scoped_ptr. See // http://crbug.com/162971 void reset(const element_type& value = traits_type::InvalidValue()) { RELEASE_ASSERT(data_.generic == traits_type::InvalidValue() || diff --git a/src/bvar/variable.cpp b/src/bvar/variable.cpp index bd6de08a..4da0b1e0 100644 --- a/src/bvar/variable.cpp +++ b/src/bvar/variable.cpp @@ -38,7 +38,7 @@ namespace bvar { DEFINE_bool(save_series, true, "Save values of last 60 seconds, last 60 minutes," - " last 24 hours and last 30 days for ploting"); + " last 24 hours and last 30 days for plotting"); DEFINE_bool(quote_vector, true, "Quote description of Vector<> to make it valid to noah"); @@ -707,7 +707,7 @@ DEFINE_string(bvar_dump_tabs, "latency=*_latency*" ";qps=*_qps*" ";error=*_error*" ";system=*process_*,*malloc_*,*kernel_*", - "Dump bvar into different tabs according to the filters (seperated by semicolon), " + "Dump bvar into different tabs according to the filters (separated by semicolon), " "format: *(tab_name=wildcards;)"); DEFINE_bool(mbvar_dump, false, diff --git a/tools/pprof b/tools/pprof index 90ba59dc..d9751897 100755 --- a/tools/pprof +++ b/tools/pprof @@ -4465,7 +4465,7 @@ sub GetProcedureBoundariesViaNm { # Tag this routine with the starting address in case the image # has multiple occurrences of this routine. We use a syntax - # that resembles template paramters that are automatically + # that resembles template parameters that are automatically # stripped out by ShortFunctionName() $this_routine .= "<$start_val>"; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org