Skip to content

Commit

Permalink
doc: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin-Huang committed Aug 16, 2022
1 parent 5cd9ccc commit 9c7b7bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func NewConfig(debug bool) Config {
}
```

## 想在构造时做些初始化?
## 如何在构造器中做初始化操作?

1. 加上 `--init` 参数
2. 为结构体实现一个 `init` 方法
Expand Down Expand Up @@ -123,7 +123,7 @@ func NewController(logger *zap.Logger, debug bool) *Controller {
}
```

## 如果在生成构造器时忽略掉一些字段
## 如何在生成构造器时忽略掉一些字段

给需要忽略的字段添加 `newc:"-"` 标签

Expand Down

0 comments on commit 9c7b7bb

Please sign in to comment.