Skip to content

Commit 0073eab

Browse files
committed
Merge branch 'master' of github.com:mug1wara26/source-lsp
2 parents f0e7f17 + bd14973 commit 0073eab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/rules/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The variable `pi` should have a warning.
1919

2020
Identifies statements that are missing semicolons.
2121
```javascript
22-
const x = 1;
22+
const x = 1
2323
```
2424
The line ending should have an error.
2525

@@ -113,7 +113,7 @@ true == 1;
113113
Only permitted operators defined in Source is allowed. Binary operators like `^` or `instanceof` is banned, unary operators like `typeof` is also banned.
114114
```javascript
115115
100^5;
116-
typeof 1 === "number"
116+
typeof 1 === "number";
117117
```
118118
The two expressions will throw an error.
119119

@@ -146,7 +146,7 @@ Cannot call identifiers that are not a function
146146
const x = 1;
147147
x();
148148
let y = 1;
149-
y()
149+
y();
150150
```
151151
The function application on `x` will throw an error, however the function application on `y` will not, as y
152152
can be reassigned, hence it will be a runtime error.

0 commit comments

Comments
 (0)