diff --git a/parser_test.go b/parser_test.go index d4c9375..40f9cb6 100644 --- a/parser_test.go +++ b/parser_test.go @@ -16,12 +16,12 @@ var goVersionRegexp = regexp.MustCompile(`^go1(?:\.(\d+))?`) // in order to be able to sort an array of Tag type TagSlice []Tag -// Return the len of the array +// Len returns the len of the array func (t TagSlice) Len() int { return len(t) } -// Compare two elements of a tag array +// Less compares two elements of a tag array func (t TagSlice) Less(i, j int) bool { return t[i].String() < t[j].String() } diff --git a/tag.go b/tag.go index 7ee7df6..5d6a958 100644 --- a/tag.go +++ b/tag.go @@ -62,7 +62,7 @@ func NewTag(name, file string, line int, tagType TagType) Tag { } } -// The tags file format string representation of this tag. +// String: The tags file format string representation of this tag. func (t Tag) String() string { var b bytes.Buffer