Skip to content

Commit bf48807

Browse files
ppzqhrogerogers
andauthored
docs: update message_type doc (#779)
Co-authored-by: copy rogers <[email protected]>
1 parent e9ba735 commit bf48807

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/en/docs/kitex/Tutorials/basic-feature/message_type.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ service EchoService {
4545
}
4646
```
4747

48-
The layout of generated code might be:
48+
The layout of generated code:
4949

5050
```
5151
.
@@ -60,7 +60,7 @@ The layout of generated code might be:
6060
└── k-echo.go
6161
```
6262

63-
The handler code in server side might be:
63+
The handler code on server side:
6464

6565
```go
6666
package main
@@ -93,7 +93,7 @@ func main() {
9393

9494
#### PingPong
9595

96-
The code in client side might be:
96+
The code on client side:
9797

9898
```go
9999
package main
@@ -120,7 +120,7 @@ func main() {
120120

121121
#### Oneway
122122

123-
The code in client side might be:
123+
The code on client side:
124124

125125
```go
126126
package main
@@ -147,12 +147,12 @@ func main() {
147147

148148
## Protobuf
149149

150-
Kitex supports two kind of protocols that carries Protobuf payload:
150+
Kitex supports two kinds of protocols that carry Protobuf payload:
151151

152152
- Kitex Protobuf
153153
- Only supports the PingPong type of messages. If any streaming method is defined in the IDL, the protocol will switch to gRPC.
154154
- The gRPC Protocol
155-
- The protocol that shipped with gRPC.
155+
- Be able to interoperate with gRPC. Use the same definition as gRPC service, and supports Unary (PingPong) and Streaming calls.
156156

157157
### Example
158158

@@ -182,7 +182,7 @@ service EchoService {
182182
}
183183
```
184184

185-
The generated code might be:
185+
The generated code:
186186

187187
```
188188
.
@@ -196,7 +196,7 @@ The generated code might be:
196196
└── server.go
197197
```
198198

199-
The handler code in server side:
199+
The handler code on server side:
200200

201201
```go
202202
package main

0 commit comments

Comments
 (0)