From 7241e26a8ac9aa797f046b6150a481563f625476 Mon Sep 17 00:00:00 2001
From: Raimo Niskanen
Date: Tue, 10 May 2016 10:23:35 +0200
Subject: Reword 'dispatch' into 'branch depending'
---
lib/stdlib/doc/src/gen_statem.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'lib/stdlib/doc/src')
diff --git a/lib/stdlib/doc/src/gen_statem.xml b/lib/stdlib/doc/src/gen_statem.xml
index b1d9799917..0e7d6e53e9 100644
--- a/lib/stdlib/doc/src/gen_statem.xml
+++ b/lib/stdlib/doc/src/gen_statem.xml
@@ -136,9 +136,9 @@ erlang:'!' -----> Module:StateName/3
is used as the state function name; see
Module:StateName/3.
This gathers all code for a specific state
- in one function and hence dispatches on state first.
- Notice that in this mode
- the mandatory callback function
+ in one function as the gen_statem engine
+ branches depending on state name.
+ Notice that in this mode the mandatory callback function
Module:terminate/3
makes the state name terminate unusable.
@@ -148,7 +148,7 @@ erlang:'!' -----> Module:StateName/3
is handle_event_function, the state can be any term
and the state function name is
Module:handle_event/4.
- This makes it easy to dispatch on state or on event as you desire.
+ This makes it easy to branch depending on state or event as you desire.
Be careful about which events you handle in which
states so that you do not accidentally postpone an event
forever creating an infinite busy loop.
--
cgit v1.2.3