From 3ec5f1a72fe1c26a8a7abeefcabbd2e9f6153d99 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Sat, 15 Aug 2015 10:00:02 -0700 Subject: [PATCH] update repos example to use RateLimits The RateLimit() func is deprecated, and should not appear in the official example. --- examples/repos/main.go | 2 +- github/github.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/repos/main.go b/examples/repos/main.go index c9975e5..b210c8d 100644 --- a/examples/repos/main.go +++ b/examples/repos/main.go @@ -24,7 +24,7 @@ func main() { fmt.Printf("%v\n\n", github.Stringify(repos)) } - rate, _, err := client.RateLimit() + rate, _, err := client.RateLimits() if err != nil { fmt.Printf("Error fetching rate limit: %#v\n\n", err) } else { diff --git a/github/github.go b/github/github.go index 737c17c..30b8390 100644 --- a/github/github.go +++ b/github/github.go @@ -66,7 +66,7 @@ type Client struct { // Rate specifies the current rate limit for the client as determined by the // most recent API call. If the client is used in a multi-user application, - // this rate may not always be up-to-date. Call RateLimit() to check the + // this rate may not always be up-to-date. Call RateLimits() to check the // current rate. Rate Rate