Skip to content

Commit

Permalink
encoding.base58: fix notice for slice creation (#21935)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibkod authored Jul 26, 2024
1 parent 7baff15 commit 52fe7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/encoding/base58/base58.v
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn encode_walpha_bytes(input []u8, alphabet Alphabet) []u8 {
for i = zcount; i < sz && out[i] == 0; i++ {}

// now encode the values with actual alphabet in-place
val := out[i - zcount..]
val := unsafe { out[i - zcount..] }
sz = val.len
for i = 0; i < sz; i++ {
out[i] = alphabet.encode[val[i]]
Expand Down

0 comments on commit 52fe7c0

Please sign in to comment.