Skip to content

Commit

Permalink
Docs: Remove claim about semicolons from docs (#12944)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Luke-Sikina committed Feb 25, 2020
1 parent aa9d725 commit 05380e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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"
Expand Down

0 comments on commit 05380e6

Please sign in to comment.