From 31ecb2cc3f0d2eb77551e39001c0063326ed103f Mon Sep 17 00:00:00 2001 From: dmnlk Date: Fri, 20 Mar 2015 01:56:03 +0900 Subject: [PATCH] fix RepositoryListByOrgOptions in README sample RepositoryListByOrgOptions doesn't have a `Sort` field --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b3d4997..13ddf2f 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,11 @@ orgs, _, err := client.Organizations.List("willnorris", nil) ``` Some API methods have optional parameters that can be passed. For example, -to list repositories for the "github" organization, sorted by the time they -were last updated: +to list public repositories for the "github" organization: ```go client := github.NewClient(nil) -opt := &github.RepositoryListByOrgOptions{Sort: "updated"} +opt := &github.RepositoryListByOrgOptions{Type: "public"} repos, _, err := client.Repositories.ListByOrg("github", opt) ```