Skip to content

Commit

Permalink
chore: correct the spelling error (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
iutx authored Jan 30, 2024
1 parent 2fdb559 commit 2f5fc31
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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").
All Tencent Modifications are Copyright (C) THL A29 Limited.

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

Apache License

Expand Down
2 changes: 1 addition & 1 deletion docs/en/http_protocol_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class ApiUserHandler : public ::trpc::http::HttpHandler {

#### Register `HttpController`

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/en/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ the following:
* How to use JSON as a message type.
* How to use binary data as a message type.

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

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/http_protocol_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ class ApiUserHandler : public ::trpc::http::HttpHandler {

#### 注册 `HttpController`

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/redis_client_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## Redis 协议

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 服务端。
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 服务端。

## 接口形式

Expand Down
2 changes: 1 addition & 1 deletion examples/features/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ $ curl http://127.0.0.1:8889/cmds/loglevel
# the custom value is 10 before reloading config
$ curl http://127.0.0.1:8889/cmds/myhandler1
{"custom_value":10}
# change the "custom:value" of server/trcp_cpp_fiber.yaml to 20, and then reload the config
# change the "custom:value" of server/trpc_cpp_fiber.yaml to 20, and then reload the config
$ curl http://127.0.0.1:8889/cmds/reload-config -X POST
{"errorcode":0,"message":"reload config ok"}
# the custom value is 20 after reloading config
Expand Down
2 changes: 1 addition & 1 deletion trpc/config/trpc_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void Destroy();
template <typename... Args>
DefaultConfigPtr Load(const std::string& path, Args&&... opts) {
static_assert((std::is_same_v<Args, LoadOptions> && ...), "Args must be LoadOption objects");
// Hand it to the tPRC-CPP default loader
// Hand it to the tRPC-CPP default loader
std::vector<LoadOptions> options = {std::forward<LoadOptions>(opts)...};
return detail::Load(path, std::move(options));
}
Expand Down

0 comments on commit 2f5fc31

Please sign in to comment.