Skip to content

Commit

Permalink
doc: upload file 按需序列化使用指南
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-yyds committed Sep 20, 2024
1 parent 1d4d16c commit 1f25c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/zh/docs/kitex/Tutorials/advanced-feature/fieldmask.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var fieldmaskCache sync.Map

// initialize request and response fieldmasks and cache them
func init() {
// construct a fieldmask with TypeDescriptor and thrift pathes
// construct a fieldmask with TypeDescriptor and thrift paths
respMask, err := fieldmask.NewFieldMask(
(*fieldmask0.BizResponse)(nil).GetTypeDescriptor(),
"$.A")
Expand Down Expand Up @@ -199,7 +199,7 @@ func TestClient() {
req.A = "A"
req.B = "B"

// try get reponse's fieldmask
// try get response's fieldmask
respMask, ok := fmCache.Load("BizResponse")
if ok {
// serialize the respMask
Expand Down

0 comments on commit 1f25c14

Please sign in to comment.