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 a61b480 commit d02c063Copy full SHA for d02c063
vlib/encoding/hex/hex.v
@@ -42,7 +42,7 @@ pub fn decode(s string) ?[]byte {
42
// output will always be a string with length a multiple of 2.
43
[manualfree]
44
pub fn encode(bytes []byte) string {
45
- mut sb := strings.new_builder(bytes.len << 1)
+ mut sb := strings.new_builder(bytes.len * 2)
46
for b in bytes {
47
sb.write_string(b.hex())
48
}
0 commit comments