Browse Source

Fixed a couple of typos in comments

fixes #272
saisi 10 years ago
committed by Will Norris
parent
commit
237a9a4c5f
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      github/github.go
  2. +1
    -1
      github/github_test.go
  3. +2
    -2
      github/repos_stats.go
  4. +1
    -1
      github/repos_statuses.go

+ 1
- 1
github/github.go View File

@ -236,7 +236,7 @@ func newResponse(r *http.Response) *Response {
}
// populatePageValues parses the HTTP Link response headers and populates the
// various pagination link values in the Reponse.
// various pagination link values in the Response.
func (r *Response) populatePageValues() {
if links, ok := r.Response.Header["Link"]; ok && len(links) > 0 {
for _, link := range strings.Split(links[0], ",") {


+ 1
- 1
github/github_test.go View File

@ -55,7 +55,7 @@ func teardown() {
// openTestFile creates a new file with the given name and content for testing.
// In order to ensure the exact file name, this function will create a new temp
// directory, and create the file in that directory. It is the caller's
// responsibility to remove the directy and its contents when no longer needed.
// responsibility to remove the directory and its contents when no longer needed.
func openTestFile(name, content string) (file *os.File, dir string, err error) {
dir, err = ioutil.TempDir("", "go-github")
if err != nil {


+ 2
- 2
github/repos_stats.go View File

@ -102,7 +102,7 @@ func (s *RepositoriesService) ListCommitActivity(owner, repo string) ([]WeeklyCo
// ListCodeFrequency returns a weekly aggregate of the number of additions and
// deletions pushed to a repository. Returned WeeklyStats will contain
// additiona and deletions, but not total commits.
// additions and deletions, but not total commits.
//
// GitHub API Docs: https://developer.github.com/v3/repos/statistics/#code-frequency
func (s *RepositoriesService) ListCodeFrequency(owner, repo string) ([]WeeklyStats, *Response, error) {
@ -175,7 +175,7 @@ func (s *RepositoriesService) ListParticipation(owner, repo string) (*Repository
return participation, resp, err
}
// PunchCard respresents the number of commits made during a given hour of a
// PunchCard represents the number of commits made during a given hour of a
// day of thew eek.
type PunchCard struct {
Day *int // Day of the week (0-6: =Sunday - Saturday).


+ 1
- 1
github/repos_statuses.go View File

@ -86,7 +86,7 @@ func (s *RepositoriesService) CreateStatus(owner, repo, ref string, status *Repo
// CombinedStatus represents the combined status of a repository at a particular reference.
type CombinedStatus struct {
// State is the combined state of the repository. Possible values are:
// failture, pending, or success.
// failure, pending, or success.
State *string `json:"state,omitempty"`
Name *string `json:"name,omitempty"`


Loading…
Cancel
Save