From 1763de38e1073bd8e866d8c03199c7ca6a774476 Mon Sep 17 00:00:00 2001 From: jjpinto Date: Mon, 22 Dec 2025 09:18:57 -0500 Subject: [PATCH 1/2] Fix a couple of issues in error handling documentation --- src/error-once.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error-once.md b/src/error-once.md index 6d91cea9..5d7bbf2b 100644 --- a/src/error-once.md +++ b/src/error-once.md @@ -4,7 +4,7 @@ When a caller receives an error from a callee, it can handle it in a variety of different ways depending on what it knows about the error. -These include, but not are limited to: +These include, but are not limited to: - if the callee contract defines specific errors, matching the error with `errors.Is` or `errors.As` @@ -30,7 +30,7 @@ For example, consider the following cases: **Bad**: Log the error and return it Callers further up the stack will likely take a similar action with the error. -Doing so causing a lot of noise in the application logs for little value. +Doing so causes a lot of noise in the application logs for little value. From 0a43982b3883ceba583850d028034df2795ad603 Mon Sep 17 00:00:00 2001 From: jjpinto <16046674+jjpinto@users.noreply.github.com> Date: Mon, 22 Dec 2025 14:19:51 +0000 Subject: [PATCH 2/2] Auto-update style.md --- style.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style.md b/style.md index 6ffaff4b..a8314204 100644 --- a/style.md +++ b/style.md @@ -1023,7 +1023,7 @@ When a caller receives an error from a callee, it can handle it in a variety of different ways depending on what it knows about the error. -These include, but not are limited to: +These include, but are not limited to: - if the callee contract defines specific errors, matching the error with `errors.Is` or `errors.As` @@ -1049,7 +1049,7 @@ For example, consider the following cases: **Bad**: Log the error and return it Callers further up the stack will likely take a similar action with the error. -Doing so causing a lot of noise in the application logs for little value. +Doing so causes a lot of noise in the application logs for little value.