From 1480702e8d4a89d26b72d62bb3540c827c5aa79a Mon Sep 17 00:00:00 2001 From: Paarth Madan Date: Thu, 23 Nov 2023 15:27:17 -0500 Subject: [PATCH 1/2] docs: fix typo and make comment clearer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b0a52b2a6..8b81856aec 100644 --- a/README.md +++ b/README.md @@ -590,7 +590,7 @@ try { // your code here that sends at least one Octokit request await octokit.request("GET /"); } catch (error) { - // Octokit errors always have a `error.status` property which is the http response code nad it's instance of RequestError + // Octokit errors are instances of RequestError, so they always have an `error.status` property for the HTTP response code. if (error instanceof RequestError) { // handle Octokit error // error.message; // Oops From 45ecc0af7cafc2ee67711e34cb35589c69cbe1ad Mon Sep 17 00:00:00 2001 From: Paarth Madan Date: Thu, 23 Nov 2023 16:42:57 -0500 Subject: [PATCH 2/2] Update README.md Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b81856aec..73aaf55379 100644 --- a/README.md +++ b/README.md @@ -590,7 +590,7 @@ try { // your code here that sends at least one Octokit request await octokit.request("GET /"); } catch (error) { - // Octokit errors are instances of RequestError, so they always have an `error.status` property for the HTTP response code. + // Octokit errors are instances of RequestError, so they always have an `error.status` property containing the HTTP response code. if (error instanceof RequestError) { // handle Octokit error // error.message; // Oops