File 0379-stdlib-fix-spelling-error.patch of Package erlang
From 958778cdf6f4294720d917e1928dddfec15e09f2 Mon Sep 17 00:00:00 2001
From: Gilbert <gilbertwong96@icloud.com>
Date: Wed, 5 Jul 2023 10:31:41 +0800
Subject: [PATCH] stdlib: fix spelling error
---
lib/stdlib/src/supervisor.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/stdlib/src/supervisor.erl b/lib/stdlib/src/supervisor.erl
index 6636fbc46d..f81e31cb05 100644
--- a/lib/stdlib/src/supervisor.erl
+++ b/lib/stdlib/src/supervisor.erl
@@ -1534,9 +1534,9 @@ add_restart(State) ->
end.
add_restart(Restarts0, Now, Period) ->
- Treshold = Now - Period,
+ Threshold = Now - Period,
Restarts1 = lists:takewhile(
- fun (R) -> R >= Treshold end,
+ fun (R) -> R >= Threshold end,
Restarts0
),
[Now | Restarts1].
--
2.35.3