aboutsummaryrefslogtreecommitdiff
path: root/hash.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit5c15542025c98f89d65331ff01b28daa389cf2a6 (patch)
tree18a4cf7eb79ef81d63b9c658dc42b21e69e1282e /hash.go
parentrepo is thread safe (diff)
signature
Fix some docs and API types
Diffstat (limited to 'hash.go')
-rw-r--r--hash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.go b/hash.go
index 2278f7cc..068eb840 100644
--- a/hash.go
+++ b/hash.go
@@ -40,7 +40,7 @@ func (hash Hash) String() string {
return hex.EncodeToString(hash.data[:hash.size])
}
-// Bytes returns a mutable copy of the hash bytes.
+// Bytes returns a copy of the hash's bytes.
func (hash Hash) Bytes() []byte {
return append([]byte(nil), hash.data[:hash.size]...)
}