From c4932a9b59a60daa02a28db1bb7be39d6ec2e542 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 16 Mar 2015 11:25:30 +1100 Subject: [PATCH] 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 --- oauth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2.go b/oauth2.go index 6ea3fd6..f799eda 100644 --- a/oauth2.go +++ b/oauth2.go @@ -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").