summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguoguangwu <guoguangwug@gmail.com>2024-04-22 02:07:37 +0000
committerCody Oss <codyoss@google.com>2024-04-22 16:03:30 +0000
commit84cb9f7f5c5a639955cd501bfdd54f0e63997e61 (patch)
tree890b4856cf612f1158f7ace71191ddd38db339ea
parent4b7f0bdbc7c30d05383d2597847300fbb870608b (diff)
downloadgolang-x-oauth2-upstream-master.tar.gz
oauth2: fix typo in commentupstream-master
Change-Id: Ifc12ed36671d21e388c537c510a82be084e9ec99 GitHub-Last-Rev: a4da759dd92626f746324862720b865308a5f09f GitHub-Pull-Request: golang/oauth2#720 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/580715 TryBot-Bypass: Cody Oss <codyoss@google.com> Reviewed-by: Cody Oss <codyoss@google.com> Reviewed-by: Joedian Reid <joedian@google.com>
-rw-r--r--oauth2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauth2.go b/oauth2.go
index 90a2c3d..09f6a49 100644
--- a/oauth2.go
+++ b/oauth2.go
@@ -393,7 +393,7 @@ func ReuseTokenSource(t *Token, src TokenSource) TokenSource {
}
}
-// ReuseTokenSource returns a TokenSource that acts in the same manner as the
+// ReuseTokenSourceWithExpiry returns a TokenSource that acts in the same manner as the
// TokenSource returned by ReuseTokenSource, except the expiry buffer is
// configurable. The expiration time of a token is calculated as
// t.Expiry.Add(-earlyExpiry).