Skip to content

Commit

Permalink
chore: complete unfinished documentation for keyformat.NewKeyFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-orijtech authored and tac0turtle committed May 13, 2023
1 parent 829de96 commit bdf3630
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keyformat/key_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ type KeyFormat struct {
// return keyFormat.Key(version, hasher.Sum(nil))
// }
//
// if the last term of the layout ends in 0
// If the last term of the layout is 0 it is unbounded, and will accept any length.
//
// NewKeyFormat panics if any other term than the last is 0.
func NewKeyFormat(prefix byte, layout ...int) *KeyFormat {
// For prefix byte
length := 1
Expand Down

0 comments on commit bdf3630

Please sign in to comment.