mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Fix comment typo.
This commit is contained in:
parent
970b9c129d
commit
d829f688b9
@ -70,7 +70,7 @@ func NewShaHash(newHash []byte) (*ShaHash, error) {
|
||||
// NewShaHashFromStr converts a hash string in the standard bitcoin big-endian
|
||||
// form to a ShaHash (which is little-endian).
|
||||
func NewShaHashFromStr(hash string) (*ShaHash, error) {
|
||||
// Return error is hash string is too long.
|
||||
// Return error if hash string is too long.
|
||||
if len(hash) > MaxHashStringSize {
|
||||
return nil, ErrHashStrSize
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user