Fix comment typo.
This commit is contained in:
parent
970b9c129d
commit
d829f688b9
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func NewShaHash(newHash []byte) (*ShaHash, error) {
|
||||||
// NewShaHashFromStr converts a hash string in the standard bitcoin big-endian
|
// NewShaHashFromStr converts a hash string in the standard bitcoin big-endian
|
||||||
// form to a ShaHash (which is little-endian).
|
// form to a ShaHash (which is little-endian).
|
||||||
func NewShaHashFromStr(hash string) (*ShaHash, error) {
|
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 {
|
if len(hash) > MaxHashStringSize {
|
||||||
return nil, ErrHashStrSize
|
return nil, ErrHashStrSize
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue