From a966f481aa7acf358f177f77e8b90406554d2d11 Mon Sep 17 00:00:00 2001 From: zouyee Date: Tue, 27 Jun 2017 14:51:57 +0800 Subject: [PATCH] modify some mistake Kubernetes-commit: 3e78e53c3dcf958631b6825c41b279288914ab4f --- discovery/discovery_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/discovery_client.go b/discovery/discovery_client.go index 26f7e01c..59c69680 100644 --- a/discovery/discovery_client.go +++ b/discovery/discovery_client.go @@ -423,7 +423,7 @@ func NewDiscoveryClientForConfig(c *restclient.Config) (*DiscoveryClient, error) return &DiscoveryClient{restClient: client, LegacyPrefix: "/api"}, err } -// NewDiscoveryClientForConfig creates a new DiscoveryClient for the given config. If +// NewDiscoveryClientForConfigOrDie creates a new DiscoveryClient for the given config. If // there is an error, it panics. func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient { client, err := NewDiscoveryClientForConfig(c) @@ -434,7 +434,7 @@ func NewDiscoveryClientForConfigOrDie(c *restclient.Config) *DiscoveryClient { } -// New creates a new DiscoveryClient for the given RESTClient. +// NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient. func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient { return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"} }