Skip to content

Commit

Permalink
Merge pull request #7476 from gilbertwong96/stdlib/fix-spelling-error
Browse files Browse the repository at this point in the history
stdlib: fix spelling error
  • Loading branch information
garazdawi authored Jul 5, 2023
2 parents 119335f + 958778c commit e765a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stdlib/src/supervisor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down

0 comments on commit e765a98

Please sign in to comment.