Skip to content

Commit 49a531d

Browse files
cuishuanggopherbot
authored andcommitted
all: make method and struct comments match the names
Change-Id: I9fd025393acc12da59fdac1c416563324cd26af1 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/639695 Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 22134a4 commit 49a531d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

clientcredentials/clientcredentials.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type Config struct {
3737
// URL. This is a constant specific to each server.
3838
TokenURL string
3939

40-
// Scope specifies optional requested permissions.
40+
// Scopes specifies optional requested permissions.
4141
Scopes []string
4242

4343
// EndpointParams specifies additional parameters for requests to the token endpoint.

google/externalaccount/aws.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
// AwsSecurityCredentials models AWS security credentials.
3030
type AwsSecurityCredentials struct {
31-
// AccessKeyId is the AWS Access Key ID - Required.
31+
// AccessKeyID is the AWS Access Key ID - Required.
3232
AccessKeyID string `json:"AccessKeyID"`
3333
// SecretAccessKey is the AWS Secret Access Key - Required.
3434
SecretAccessKey string `json:"SecretAccessKey"`

google/externalaccount/basecredentials.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ type SubjectTokenSupplier interface {
329329
type AwsSecurityCredentialsSupplier interface {
330330
// AwsRegion should return the AWS region or an error.
331331
AwsRegion(ctx context.Context, options SupplierOptions) (string, error)
332-
// GetAwsSecurityCredentials should return a valid set of AwsSecurityCredentials or an error.
332+
// AwsSecurityCredentials should return a valid set of AwsSecurityCredentials or an error.
333333
// The external account token source does not cache the returned security credentials, so caching
334334
// logic should be implemented in the supplier to prevent multiple requests for the same security credentials.
335335
AwsSecurityCredentials(ctx context.Context, options SupplierOptions) (*AwsSecurityCredentials, error)

oauth2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type Config struct {
5656
// the OAuth flow, after the resource owner's URLs.
5757
RedirectURL string
5858

59-
// Scope specifies optional requested permissions.
59+
// Scopes specifies optional requested permissions.
6060
Scopes []string
6161

6262
// authStyleCache caches which auth style to use when Endpoint.AuthStyle is

0 commit comments

Comments
 (0)