Skip to content

Commit 081901e

Browse files
authored
Update README.md
corrected the signature of jira.NewClient() in the PAT example. first comes the httpClient jira.httpClient and second comes the baseURL string
1 parent 0946977 commit 081901e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
APIToken: "<api-token>",
110110
}
111111

112-
client, err := jira.NewClient("https://my.jira.com", tp.Client())
112+
client, err := jira.NewClient(tp.Client(), "https://my.jira.com")
113113

114114
u, _, err = client.User.GetCurrentUser(context.Background())
115115

0 commit comments

Comments
 (0)