From da8d52a9d4edd9b2016cd4a15cd78f1ddadf20c7 Mon Sep 17 00:00:00 2001 From: Ahmadou Waly NDIAYE Date: Sun, 2 Apr 2023 05:35:02 +0000 Subject: [PATCH] docs: Update the second object instance for the "no-new" rule (#17020) * docs: Removed the second object instance for the "no-new" rule * docs: re-define the function name --- docs/src/rules/no-new.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/rules/no-new.md b/docs/src/rules/no-new.md index 9eeda70095a..c8cea29cb0f 100644 --- a/docs/src/rules/no-new.md +++ b/docs/src/rules/no-new.md @@ -43,7 +43,7 @@ Examples of **correct** code for this rule: var thing = new Thing(); -Thing(); +Foo(); ``` :::