Commit 81bba801 authored by Xigang Wang's avatar Xigang Wang Committed by Chris O'Haver

Change the ToEndpoints method comment to replace the Service with Endpoints (#3146)

parent 6f028d04
......@@ -43,7 +43,7 @@ type EndpointPort struct {
// EndpointsKey return a string using for the index.
func EndpointsKey(name, namespace string) string { return name + "." + namespace }
// ToEndpoints converts an api.Service to a *Service.
// ToEndpoints converts an api.Endpoints to a *Endpoints.
func ToEndpoints(obj interface{}) interface{} {
end, ok := obj.(*api.Endpoints)
if !ok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment