Skip to content

Commit

Permalink
fix(README): correct bad references (#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarse authored May 18, 2021
1 parent 6eca58a commit 78ac318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const octokit = new Octokit({ auth: `personal-access-token123` });
// Compare: https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
const {
data: { login },
} = await octokit.users.getAuthenticated();
} = await octokit.rest.users.getAuthenticated();
console.log("Hello, %s", login);
```

Expand Down Expand Up @@ -351,7 +351,7 @@ For example, to implement the above using `App`
const app = new App({ appId, privateKey });
const { data: slug } = await app.octokit.rest.apps.getAuthenticated();
const { octokit } = await app.getInstallationOctokit(123);
await octokit.issues.create({
await octokit.rest.issues.create({
owner: "octocat",
repo: "hello-world",
title: "Hello world from " + slug,
Expand Down

0 comments on commit 78ac318

Please sign in to comment.