From a59a35745f99ad92d70d69a9f180767063aa4bf3 Mon Sep 17 00:00:00 2001 From: chandresh-pancholi Date: Wed, 24 Aug 2016 19:15:23 +0530 Subject: [PATCH] Fix code example in README file Fixes #420 Closes #423 --- README.md | 4 ++-- github/doc.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9a3a7dc..9e4d271 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ Some API methods have optional parameters that can be passed. For example: ```go client := github.NewClient(nil) -// list recently updated repositories for org "github" -opt := &github.RepositoryListByOrgOptions{Sort: "updated"} +// list public repositories for org "github" +opt := &github.RepositoryListByOrgOptions{Type: "public"} repos, _, err := client.Repositories.ListByOrg("github", opt) ``` diff --git a/github/doc.go b/github/doc.go index ba7b089..2b61068 100644 --- a/github/doc.go +++ b/github/doc.go @@ -22,8 +22,8 @@ Some API methods have optional parameters that can be passed. For example: client := github.NewClient(nil) - // list recently updated repositories for org "github" - opt := &github.RepositoryListByOrgOptions{Sort: "updated"} + // list public repositories for org "github" + opt := &github.RepositoryListByOrgOptions{Type: "public"} repos, _, err := client.Repositories.ListByOrg("github", opt) The services of a client divide the API into logical chunks and correspond to