Skip to content

Commit 8db8756

Browse files
author
Julien LEFEVRE
committed
DataCenterHostFilter Typo fix
DataCentreHostFilter -> DataCenterHostFilter
1 parent d95cf2f commit 8db8756

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

filters.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ func DenyAllFilter() HostFilter {
2929
})
3030
}
3131

32-
// DataCentreHostFilter filters all hosts such that they are in the same data centre
32+
// DataCenterHostFilter filters all hosts such that they are in the same data centre
3333
// as the supplied data centre.
34-
func DataCentreHostFilter(dataCentre string) HostFilter {
34+
func DataCenterHostFilter(dataCentre string) HostFilter {
3535
return HostFilterFunc(func(host *HostInfo) bool {
3636
return host.DataCenter() == dataCentre
3737
})

filters_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func TestFilter_DenyAll(t *testing.T) {
7474
}
7575
}
7676

77-
func TestFilter_DataCentre(t *testing.T) {
78-
f := DataCentreHostFilter("dc1")
77+
func TestFilter_DataCenter(t *testing.T) {
78+
f := DataCenterHostFilter("dc1")
7979
tests := [...]struct {
8080
dc string
8181
accept bool

0 commit comments

Comments
 (0)