Skip to content

Commit

Permalink
Update terror/terror.go
Browse files Browse the repository at this point in the history
Co-authored-by: kennytm <kennytm@gmail.com>
  • Loading branch information
tiancaiamao and kennytm committed Sep 30, 2021
1 parent e1f9e0f commit bd914f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terror/terror.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (m *code2ErrClassMap) Put(key string, err ErrClass) {
var registerFinish uint32

// RegisterFinish makes the register of new error panic.
// The use pattern should be regist all the error during initialization, and then call RegisterFinish.
// The use pattern should be register all the errors during initialization, and then call RegisterFinish.
func RegisterFinish() {
atomic.StoreUint32(&registerFinish, 1)
}
Expand Down

0 comments on commit bd914f4

Please sign in to comment.