From 80d13137f2857164a9d30d6ee23104e87fae9e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= Date: Tue, 7 Jan 2025 16:53:29 +0100 Subject: [PATCH] stdlib: Fix code quoting in gen_fsm:StateName/1 docs --- lib/stdlib/src/gen_fsm.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/stdlib/src/gen_fsm.erl b/lib/stdlib/src/gen_fsm.erl index c1f53841bade..322ff6be39c7 100644 --- a/lib/stdlib/src/gen_fsm.erl +++ b/lib/stdlib/src/gen_fsm.erl @@ -452,16 +452,16 @@ or the `Event` argument provided to `send_event/2`. `StateData` is the [*state data*](#state-data) of the `gen_fsm` process. -If the function returns `{next_state, NextStateName, NewStateData}, -{next_state, NextStateName, NewStateData, Timeout}, -or {next_state, NextStateName, NewStateData, hibernate}, +If the function returns `{next_state, NextStateName, NewStateData}`, +`{next_state, NextStateName, NewStateData, Timeout}`, +or `{next_state, NextStateName, NewStateData, hibernate}`, the `gen_fsm` process continues executing with the current [*state name*](#state-name) set to `NextStateName` and with the possibly updated [*state data*](#state-data) `NewStateData`. For a description of `Timeout` and `hibernate`, see [`Module:init/1`](`c:init/1`). -If the function returns `{stop ,Reason, NewStateData}, +If the function returns `{stop ,Reason, NewStateData}`, the `gen_fsm` process calls [`Module:terminate(Reason, StateName, NewStateData)`](`c:terminate/3`) and terminates.