From 05380e6e7e19a79d26ea6d6b44a8d5ee7cde51c8 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Mon, 24 Feb 2020 19:44:54 -0500 Subject: [PATCH] Docs: Remove claim about semicolons from docs (#12944) The documentation claimed that JS is unique among C-like languages in having optional semicolons at the end of statements. This is not true, as Go (Golang) also has optional semicolons and is C-like. This didn't seem terribly important, so rather than go on a tangent about what languages do or don't require semicolons, I just removed the claim. --- docs/rules/semi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/semi.md b/docs/rules/semi.md index e345b00066c..049ae41cf16 100644 --- a/docs/rules/semi.md +++ b/docs/rules/semi.md @@ -1,6 +1,6 @@ # require or disallow semicolons instead of ASI (semi) -JavaScript is unique amongst the C-like languages in that it doesn't require semicolons at the end of each statement. In many cases, the JavaScript engine can determine that a semicolon should be in a certain spot and will automatically add it. This feature is known as **automatic semicolon insertion (ASI)** and is considered one of the more controversial features of JavaScript. For example, the following lines are both valid: +JavaScript doesn't require semicolons at the end of each statement. In many cases, the JavaScript engine can determine that a semicolon should be in a certain spot and will automatically add it. This feature is known as **automatic semicolon insertion (ASI)** and is considered one of the more controversial features of JavaScript. For example, the following lines are both valid: ```js var name = "ESLint"