From 7567a5d96538a01715827a3eba57e70d8eedec37 Mon Sep 17 00:00:00 2001 From: Robin Liu <41276823+RobinLG@users.noreply.github.com> Date: Thu, 14 Apr 2022 01:15:49 +0800 Subject: [PATCH] documentation: fix typo in RegisterCodec godoc (#5306) --- encoding/encoding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding/encoding.go b/encoding/encoding.go index 6d84f74c7..18e530fc9 100644 --- a/encoding/encoding.go +++ b/encoding/encoding.go @@ -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 {