Skip to content

Commit 3c1590d

Browse files
authored
Correct NewEnterpriseClient deprecation message (#2923)
1 parent 9c58b7b commit 3c1590d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func NewTokenClient(_ context.Context, token string) *Client {
462462
// NewEnterpriseClient returns a new GitHub API client with provided
463463
// base URL and upload URL (often is your GitHub Enterprise hostname).
464464
//
465-
// Deprecated: Use NewClient(httpClient).WithOptions(WithEnterpriseURLs(baseURL, uploadURL)) instead.
465+
// Deprecated: Use NewClient(httpClient).WithEnterpriseURLs(baseURL, uploadURL) instead.
466466
func NewEnterpriseClient(baseURL, uploadURL string, httpClient *http.Client) (*Client, error) {
467467
return NewClient(httpClient).WithEnterpriseURLs(baseURL, uploadURL)
468468
}

0 commit comments

Comments
 (0)