mirror of https://github.com/grpc/grpc-go.git
documentation: fix typo in RegisterCodec godoc (#5306)
This commit is contained in:
parent
3bf6719fc8
commit
7567a5d965
|
|
@ -108,7 +108,7 @@ var registeredCodecs = make(map[string]Codec)
|
|||
// more details.
|
||||
//
|
||||
// NOTE: this function must only be called during initialization time (i.e. in
|
||||
// an init() function), and is not thread-safe. If multiple Compressors are
|
||||
// an init() function), and is not thread-safe. If multiple Codecs are
|
||||
// registered with the same name, the one registered last will take effect.
|
||||
func RegisterCodec(codec Codec) {
|
||||
if codec == nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue