Skip to content

Commit

Permalink
Fixed typo in erlc documentation
Browse files Browse the repository at this point in the history
* Documentation is inconsistent with erlc arguments [1]
* Made the change s/WError/Werror/

```
$ erlc --help 2>&1 | grep 'W[eE]'
-Werror        make all warnings into errors
```

[1] https://www.erlang.org/doc/apps/erts/erlc_cmd.html#generally-useful-flags
  • Loading branch information
Ariel Otilibili committed Jul 13, 2024
1 parent 6dafb73 commit 37196c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/doc/references/erlc_cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The following flags are supported:
containing tuples and lists must be quoted. Terms containing spaces must be
quoted on all platforms.

- **`-WError`** - Makes all warnings into errors.
- **`-Werror`** - Makes all warnings into errors.

- **`-W<Number>`** - Sets warning level to `Number`. Defaults to `1`. To turn
off warnings, use `-W0`.
Expand Down

0 comments on commit 37196c2

Please sign in to comment.