oauth2: clarify docs on Exchange (nil context isn't ok)

Fixes golang/oauth2#100

Change-Id: I28afb4f02b817ffd0ff91fb10bfca5306d2c21c6
Reviewed-on: https://go-review.googlesource.com/7615
Reviewed-by: Burcu Dogan <jbd@google.com>
This commit is contained in:
Andrew Gerrand 2015-03-16 11:25:30 +11:00
parent 42633ef623
commit c4932a9b59
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (c *Config) PasswordCredentialsToken(ctx context.Context, username, passwor
// to the Redirect URI (the URL obtained from AuthCodeURL).
//
// The HTTP client to use is derived from the context.
// If nil, http.DefaultClient is used.
// If a client is not provided via the context, http.DefaultClient is used.
//
// The code will be in the *http.Request.FormValue("code"). Before
// calling Exchange, be sure to validate FormValue("state").