mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
tweaks some comments
This commit is contained in:
parent
c170cc0ab0
commit
bce03a2f1f
2 changed files with 6 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue