fix typo for GoDoc comment on GetAll tags

This commit is contained in:
Liran Cohen
2023-01-18 04:22:38 +00:00
committed by fiatjaf
parent dcc133e628
commit c816103774

View File

@ -77,7 +77,7 @@ func (tags Tags) GetLast(tagPrefix []string) *Tag {
return nil return nil
} }
// GetLast gets all the tags that match the prefix, see [Tag.StartsWith] // GetAll gets all the tags that match the prefix, see [Tag.StartsWith]
func (tags Tags) GetAll(tagPrefix []string) Tags { func (tags Tags) GetAll(tagPrefix []string) Tags {
result := make(Tags, 0, len(tags)) result := make(Tags, 0, len(tags))
for _, v := range tags { for _, v := range tags {