File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ func (p *PathList) filter(filter func(*Path) bool) {
101
101
* p = res
102
102
}
103
103
104
- // FilterOutPrefix remove all entries having the specified prefixes
104
+ // FilterOutPrefix remove all entries having one of the specified prefixes
105
105
func (p * PathList ) FilterOutPrefix (prefixes ... string ) {
106
106
filterFunction := func (path * Path ) bool {
107
107
return ! path .HasPrefix (prefixes ... )
@@ -117,15 +117,15 @@ func (p *PathList) FilterPrefix(prefixes ...string) {
117
117
p .filter (filterFunction )
118
118
}
119
119
120
- // FilterOutSuffix remove all entries having the specified suffix
120
+ // FilterOutSuffix remove all entries having one of the specified suffixes
121
121
func (p * PathList ) FilterOutSuffix (suffixies ... string ) {
122
122
filterFunction := func (path * Path ) bool {
123
123
return ! path .HasSuffix (suffixies ... )
124
124
}
125
125
p .filter (filterFunction )
126
126
}
127
127
128
- // FilterSuffix remove all entries not having the specified prefix
128
+ // FilterSuffix remove all entries not having one of the specified suffixes
129
129
func (p * PathList ) FilterSuffix (suffixies ... string ) {
130
130
filterFunction := func (path * Path ) bool {
131
131
return path .HasSuffix (suffixies ... )
You can’t perform that action at this time.
0 commit comments