File 0172-Fixed-typo-in-erlc-documentation.patch of Package erlang
From 37196c221cb68145f022a7f9580ad1fb30e6110a Mon Sep 17 00:00:00 2001
From: Ariel Otilibili <otilibil@eurecom.fr>
Date: Sat, 13 Jul 2024 22:15:46 +0200
Subject: [PATCH] Fixed typo in `erlc` documentation
* 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
---
erts/doc/references/erlc_cmd.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erts/doc/references/erlc_cmd.md b/erts/doc/references/erlc_cmd.md
index 56f4a55020..cdb387dc3e 100644
--- a/erts/doc/references/erlc_cmd.md
+++ b/erts/doc/references/erlc_cmd.md
@@ -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`.
--
2.35.3