Browse Source

Fix code example in README file

Fixes #420
Closes #423
chandresh-pancholi 9 years ago
committed by Will Norris
parent
commit
a59a35745f
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      README.md
  2. +2
    -2
      github/doc.go

+ 2
- 2
README.md View File

@ -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)
```


+ 2
- 2
github/doc.go View File

@ -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


Loading…
Cancel
Save