Skip to content

Commit

Permalink
style: Fix typos
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
andygrunwald committed May 3, 2020
1 parent e20a3a0 commit ef6d633
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion examples/renderedfields/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ef6d633

Please sign in to comment.