From ef6d633ae18b202f9fcec03f5dd13eb806d779dd Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Sun, 3 May 2020 17:46:02 +0200 Subject: [PATCH] style: Fix typos go-jira/examples/renderedfields/main.go Line 51: warning: "Targetting" is a misspelling of "Targeting" (misspell) go-jira/authentication.go Line 169: warning: "authenticaiton" is a misspelling of "authentication" (misspell) go-jira/issue.go Line 802: warning: "specifiying" is a misspelling of "specifying" (misspell) --- authentication.go | 2 +- examples/renderedfields/main.go | 2 +- issue.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authentication.go b/authentication.go index 734aaa0..02fce3c 100644 --- a/authentication.go +++ b/authentication.go @@ -166,7 +166,7 @@ func (s *AuthenticationService) Logout() error { // JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session func (s *AuthenticationService) GetCurrentUserWithContext(ctx context.Context) (*Session, error) { if s == nil { - return nil, fmt.Errorf("authenticaiton Service is not instantiated") + return nil, fmt.Errorf("authentication Service is not instantiated") } if s.authType != authTypeSession || s.client.session == nil { return nil, fmt.Errorf("no user is authenticated yet") diff --git a/examples/renderedfields/main.go b/examples/renderedfields/main.go index ab23420..d2e69cf 100644 --- a/examples/renderedfields/main.go +++ b/examples/renderedfields/main.go @@ -48,7 +48,7 @@ func main() { return } - fmt.Printf("Targetting %s for issue %s\n", strings.TrimSpace(jiraURL), key) + fmt.Printf("Targeting %s for issue %s\n", strings.TrimSpace(jiraURL), key) options := &jira.GetQueryOptions{Expand: "renderedFields"} u, _, err := client.Issue.Get(key, options) diff --git a/issue.go b/issue.go index 012a70c..321952d 100644 --- a/issue.go +++ b/issue.go @@ -799,7 +799,7 @@ func (s *IssueService) Create(issue *Issue) (*Issue, *Response, error) { } // UpdateWithOptionsWithContext updates an issue from a JSON representation, -// while also specifiying query params. The issue is found by key. +// while also specifying query params. The issue is found by key. // // JIRA API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue func (s *IssueService) UpdateWithOptionsWithContext(ctx context.Context, issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) {