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