We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac1f53 commit 5b3ac01Copy full SHA for 5b3ac01
encoding.go
@@ -4,7 +4,7 @@ import "github.com/golang-infrastructure/go-gtypes"
4
5
// ------------------------------------------------ ---------------------------------------------------------------------
6
7
-// Encode 对无符号类型进行编码,注意,如果被编码的符号位数较小可能会约编码越大
+// Encode 对无符号类型进行编码,注意,如果被编码的数字位数较小可能会越编码越大
8
func Encode[T gtypes.Unsigned](value T) []byte {
9
bytes := make([]byte, 0)
10
for value > 127 {
0 commit comments