Skip to content

Commit 6111bf9

Browse files
kevinaStebalien
authored andcommitted
Clean up comments.
1 parent 39e4344 commit 6111bf9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

multihash.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ type DecodedMultihash struct {
170170
Digest []byte // Digest holds the raw multihash bytes
171171
}
172172

173-
// Multihash is byte slice with the following form:
173+
// Multihash is the cannoical representation of a Multihash
174+
// It is repressed internally as a binary with the following form:
174175
// <hash function code><digest size><hash function output>.
175176
// See the spec for more information.
176177
type Multihash struct {
@@ -192,7 +193,7 @@ func (m Multihash) Bytes() []byte {
192193
return []byte(m.s)
193194
}
194195

195-
// String is an alias to HexString().
196+
// IsNil returns true if the multihash is empty.
196197
func (m Multihash) IsNil() bool {
197198
return m.s == ""
198199
}

0 commit comments

Comments
 (0)