From 237a9a4c5ff88982bd7995346138107f86c420b2 Mon Sep 17 00:00:00 2001 From: saisi Date: Fri, 29 Jan 2016 12:39:40 -0500 Subject: [PATCH] Fixed a couple of typos in comments fixes #272 --- github/github.go | 2 +- github/github_test.go | 2 +- github/repos_stats.go | 4 ++-- github/repos_statuses.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/github/github.go b/github/github.go index 344cbff..22e5b51 100644 --- a/github/github.go +++ b/github/github.go @@ -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], ",") { diff --git a/github/github_test.go b/github/github_test.go index b02076d..00fa63e 100644 --- a/github/github_test.go +++ b/github/github_test.go @@ -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 { diff --git a/github/repos_stats.go b/github/repos_stats.go index 7c1de09..3474b55 100644 --- a/github/repos_stats.go +++ b/github/repos_stats.go @@ -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). diff --git a/github/repos_statuses.go b/github/repos_statuses.go index 0379a2b..7a6ee7c 100644 --- a/github/repos_statuses.go +++ b/github/repos_statuses.go @@ -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"`