aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/object/endpoint.go
diff options
context:
space:
mode:
authorGravatar Hu Shuai <hus.fnst@cn.fujitsu.com> 2020-09-01 15:10:45 +0800
committerGravatar GitHub <noreply@github.com> 2020-09-01 09:10:45 +0200
commite233f59ee8fa3ea7e3a965ba66241dd65465926a (patch)
tree72d2e9b7f6dde9c6fee4a2659656233f9af984a3 /plugin/kubernetes/object/endpoint.go
parent9e4a177d9f422583e68ade2404e598827b091263 (diff)
downloadcoredns-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/endpoint.go')
-rw-r--r--plugin/kubernetes/object/endpoint.go2
1 files changed, 1 insertions, 1 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.