Skip to content

Commit

Permalink
allocate slice
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidliadon committed Feb 5, 2024
1 parent 1a48f4b commit d61002d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prototyp/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (h *Hash) Scan(src interface{}) error {
}

func ToHashList[T Hexer](list []T) []Hash {
var result []Hash
result := make([]Hash, 0, len(list))
for _, a := range list {
result = append(result, ToHash(a))
}
Expand Down

0 comments on commit d61002d

Please sign in to comment.