Skip to content

Commit 2f5fc31

Browse files
authored
chore: correct the spelling error (#110)
1 parent 2fdb559 commit 2f5fc31

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved. The below software in this distribution may have been modified by THL A29 Limited ("Tencent Modifications").
22
All Tencent Modifications are Copyright (C) THL A29 Limited.
33

4-
tPRC-Cpp is licensed under the Apache License Version 2.0 except for the third-party components listed below.
4+
tRPC-Cpp is licensed under the Apache License Version 2.0 except for the third-party components listed below.
55

66
Apache License
77

docs/en/http_protocol_service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class ApiUserHandler : public ::trpc::http::HttpHandler {
473473

474474
#### Register `HttpController`
475475

476-
Using the `TPRC_HTTP_HANDLER` macro, users can easily register `Controller`-like interfaces to the route:
476+
Using the `TRPC_HTTP_HANDLER` macro, users can easily register `Controller`-like interfaces to the route:
477477

478478
Note: `Controller` does not inherit the `HttpHandler` class, but only has the same interface signature.
479479

docs/en/serialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ the following:
88
* How to use JSON as a message type.
99
* How to use binary data as a message type.
1010

11-
The tPRC framework uses `Protobuf Message` as the request and response message types by default. It also
11+
The tRPC framework uses `Protobuf Message` as the request and response message types by default. It also
1212
supports using `trpc` protocol to transmit JSON and binary data messages.
1313
In other worlds, JSON and binary data can be used as request and response message types.
1414

docs/zh/http_protocol_service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class ApiUserHandler : public ::trpc::http::HttpHandler {
447447

448448
#### 注册 `HttpController`
449449

450-
使用 `TPRC_HTTP_HANDLER` 宏,用户也可以方便地注册类似于 `Controller` 类接口到路由中:
450+
使用 `TRPC_HTTP_HANDLER` 宏,用户也可以方便地注册类似于 `Controller` 类接口到路由中:
451451

452452
提示: Controller 未继承 `HttpHandler` 类,只是接口签名相同。
453453

docs/zh/redis_client_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Redis 协议
1111

12-
Redis 客户端使用 RESP(Redis的序列化协议)协议与 Redis 服务端进行通信。虽然该协议是专门为 Redis 设计的,但是该协议也可以用于其他客户端-服务器(Client-Server)软件项目。Redis 协议是一种文本协议,客户端和服务器发送的命令或数据以 `\r\n`(CRLF) 结尾。有些开发者会误以为 Redis 协议是以空格分隔的,在使用 tPRC-Cpp 客户端 的时候喜欢自己拼 Redis访 问命令。在不太了解 Redis 协议本身的时候推荐使用 `trpc::redis::cmdgen{}.xxxx` 系列接口生成对应的[command](https://redis.io/commands),直接把生成的command 传入 proxy 对应接口访问 Redis 服务端。
12+
Redis 客户端使用 RESP(Redis的序列化协议)协议与 Redis 服务端进行通信。虽然该协议是专门为 Redis 设计的,但是该协议也可以用于其他客户端-服务器(Client-Server)软件项目。Redis 协议是一种文本协议,客户端和服务器发送的命令或数据以 `\r\n`(CRLF) 结尾。有些开发者会误以为 Redis 协议是以空格分隔的,在使用 tRPC-Cpp 客户端 的时候喜欢自己拼 Redis访 问命令。在不太了解 Redis 协议本身的时候推荐使用 `trpc::redis::cmdgen{}.xxxx` 系列接口生成对应的[command](https://redis.io/commands),直接把生成的command 传入 proxy 对应接口访问 Redis 服务端。
1313

1414
## 接口形式
1515

examples/features/admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ $ curl http://127.0.0.1:8889/cmds/loglevel
114114
# the custom value is 10 before reloading config
115115
$ curl http://127.0.0.1:8889/cmds/myhandler1
116116
{"custom_value":10}
117-
# change the "custom:value" of server/trcp_cpp_fiber.yaml to 20, and then reload the config
117+
# change the "custom:value" of server/trpc_cpp_fiber.yaml to 20, and then reload the config
118118
$ curl http://127.0.0.1:8889/cmds/reload-config -X POST
119119
{"errorcode":0,"message":"reload config ok"}
120120
# the custom value is 20 after reloading config

trpc/config/trpc_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void Destroy();
4444
template <typename... Args>
4545
DefaultConfigPtr Load(const std::string& path, Args&&... opts) {
4646
static_assert((std::is_same_v<Args, LoadOptions> && ...), "Args must be LoadOption objects");
47-
// Hand it to the tPRC-CPP default loader
47+
// Hand it to the tRPC-CPP default loader
4848
std::vector<LoadOptions> options = {std::forward<LoadOptions>(opts)...};
4949
return detail::Load(path, std::move(options));
5050
}

0 commit comments

Comments
 (0)