From cc1f2f0cc2dcd6566184598b60a0aedfc9636c45 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 7 Mar 2016 14:57:31 -0700 Subject: [PATCH] Docs: Minor fixes in no-new-func --- docs/rules/no-new-func.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/no-new-func.md b/docs/rules/no-new-func.md index 2e38086515b..6649b5b266e 100644 --- a/docs/rules/no-new-func.md +++ b/docs/rules/no-new-func.md @@ -6,11 +6,11 @@ It's possible to create functions in JavaScript using the `Function` constructor var x = new Function("a", "b", "return a + b"); ``` -This is considered by many to be a bad practice due to the difficult in debugging and reading these types of functions. +This is considered by many to be a bad practice due to the difficulty in debugging and reading these types of functions. ## Rule Details -This error is raised to highlight the use of a bad practice. By passing a string to the Function constructor, you are requiring the engine to parse that string much in the way it has to when you call the eval function. +This error is raised to highlight the use of a bad practice. By passing a string to the Function constructor, you are requiring the engine to parse that string much in the way it has to when you call the `eval` function. ```js /*eslint no-new-func: 2*/