From 79c8afd4eb5e7b36e4ddf3aa6674898fdc9cb6c2 Mon Sep 17 00:00:00 2001 From: Jackson Tenclay Date: Wed, 1 Nov 2023 10:51:23 -0500 Subject: [PATCH] docs: Fix spelling in no-callback-literal.md (#135) --- docs/rules/no-callback-literal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/no-callback-literal.md b/docs/rules/no-callback-literal.md index 3515ba8f..cb21b5af 100644 --- a/docs/rules/no-callback-literal.md +++ b/docs/rules/no-callback-literal.md @@ -6,7 +6,7 @@ When invoking a callback function which uses the Node.js error-first callback pa ## 📖 Rule Details -When a function is named `cb` or `callback`, then it must be invoked with a first argument that is `undefined`, `null`, an `Error` class, or a subclass or `Error`. +When a function is named `cb` or `callback`, then it must be invoked with a first argument that is `undefined`, `null`, an `Error` class, or a subclass of `Error`. Examples of 👎 **incorrect** code for this rule: