diff --git a/common/prque/sstack.go b/common/prque/sstack.go index 6865a51e23..6b32fbde9a 100755 --- a/common/prque/sstack.go +++ b/common/prque/sstack.go @@ -15,7 +15,7 @@ import "cmp" // The size of a block of data const blockSize = 4096 -// A prioritized item in the sorted stack. +// item a prioritized item in the sorted stack. type item[P cmp.Ordered, V any] struct { value V priority P @@ -26,7 +26,7 @@ type item[P cmp.Ordered, V any] struct { // to delete elements other than the top one. type SetIndexCallback[V any] func(data V, index int) -// Internal sortable stack data structure. Implements the Push and Pop ops for +// sstack internal sortable stack data structure. Implements the Push and Pop ops for // the stack (heap) functionality and the Len, Less and Swap methods for the // sortability requirements of the heaps. type sstack[P cmp.Ordered, V any] struct { diff --git a/crypto/blake2b/blake2b.go b/crypto/blake2b/blake2b.go index 7ecaab8139..c24a88b99d 100644 --- a/crypto/blake2b/blake2b.go +++ b/crypto/blake2b/blake2b.go @@ -23,13 +23,13 @@ import ( ) const ( - // The blocksize of BLAKE2b in bytes. + // BlockSize the blocksize of BLAKE2b in bytes. BlockSize = 128 - // The hash size of BLAKE2b-512 in bytes. + // Size the hash size of BLAKE2b-512 in bytes. Size = 64 - // The hash size of BLAKE2b-384 in bytes. + // Size384 the hash size of BLAKE2b-384 in bytes. Size384 = 48 - // The hash size of BLAKE2b-256 in bytes. + // Size256 the hash size of BLAKE2b-256 in bytes. Size256 = 32 )