Skip to content

Commit c1cad7e

Browse files
committed
Note that 'unused' warning is not raised for variables starting with _
1 parent 677531a commit c1cad7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/New Features/Compiler Warnings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ file.pluto:1: warning: unused local variable [unused]
1616
| ^^^^^^^ here: 'a' is unused
1717
```
1818

19+
This warning is not raised for variables starting with an underscore (`_`) as this is a common convention for unused variables.
20+
1921
### var-shadow
2022
This is raised when a new local is created with the same name as an existing one.
2123
```pluto showLineNumbers

0 commit comments

Comments
 (0)