Skip to content

Commit 8136228

Browse files
authored
Merge pull request #17 from arduino/umbynos/fix-comments
Fix comments
2 parents 445bb42 + 842a3fa commit 8136228

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

list.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (p *PathList) filter(filter func(*Path) bool) {
101101
*p = res
102102
}
103103

104-
// FilterOutPrefix remove all entries having the specified prefixes
104+
// FilterOutPrefix remove all entries having one of the specified prefixes
105105
func (p *PathList) FilterOutPrefix(prefixes ...string) {
106106
filterFunction := func(path *Path) bool {
107107
return !path.HasPrefix(prefixes...)
@@ -117,15 +117,15 @@ func (p *PathList) FilterPrefix(prefixes ...string) {
117117
p.filter(filterFunction)
118118
}
119119

120-
// FilterOutSuffix remove all entries having the specified suffix
120+
// FilterOutSuffix remove all entries having one of the specified suffixes
121121
func (p *PathList) FilterOutSuffix(suffixies ...string) {
122122
filterFunction := func(path *Path) bool {
123123
return !path.HasSuffix(suffixies...)
124124
}
125125
p.filter(filterFunction)
126126
}
127127

128-
// FilterSuffix remove all entries not having the specified prefix
128+
// FilterSuffix remove all entries not having one of the specified suffixes
129129
func (p *PathList) FilterSuffix(suffixies ...string) {
130130
filterFunction := func(path *Path) bool {
131131
return path.HasSuffix(suffixies...)

0 commit comments

Comments
 (0)