diff options
author | 2020-09-01 15:10:45 +0800 | |
---|---|---|
committer | 2020-09-01 09:10:45 +0200 | |
commit | e233f59ee8fa3ea7e3a965ba66241dd65465926a (patch) | |
tree | 72d2e9b7f6dde9c6fee4a2659656233f9af984a3 /plugin/kubernetes/object | |
parent | 9e4a177d9f422583e68ade2404e598827b091263 (diff) | |
download | coredns-e233f59ee8fa3ea7e3a965ba66241dd65465926a.tar.gz coredns-e233f59ee8fa3ea7e3a965ba66241dd65465926a.tar.zst coredns-e233f59ee8fa3ea7e3a965ba66241dd65465926a.zip |
Fix some typos in comments. (#4100)
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
Diffstat (limited to 'plugin/kubernetes/object')
-rw-r--r-- | plugin/kubernetes/object/endpoint.go | 2 | ||||
-rw-r--r-- | plugin/kubernetes/object/service.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/object/endpoint.go b/plugin/kubernetes/object/endpoint.go index f3ce9c2d6..d4c495861 100644 --- a/plugin/kubernetes/object/endpoint.go +++ b/plugin/kubernetes/object/endpoint.go @@ -42,7 +42,7 @@ type EndpointPort struct { Protocol string } -// EndpointsKey return a string using for the index. +// EndpointsKey returns a string using for the index. func EndpointsKey(name, namespace string) string { return name + "." + namespace } // ToEndpoints returns a function that converts an *api.Endpoints to a *Endpoints. diff --git a/plugin/kubernetes/object/service.go b/plugin/kubernetes/object/service.go index 4c0ea6901..de84cf941 100644 --- a/plugin/kubernetes/object/service.go +++ b/plugin/kubernetes/object/service.go @@ -25,7 +25,7 @@ type Service struct { *Empty } -// ServiceKey return a string using for the index. +// ServiceKey returns a string using for the index. func ServiceKey(name, namespace string) string { return name + "." + namespace } // ToService returns a function that converts an api.Service to a *Service. |