From cc6b4ab3264d8f7f8488ebfeb5ec94339fc2e1c2 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Mon, 14 Aug 2017 15:37:12 +0200 Subject: system: Fix broken doc links to gen_fsm design princ --- system/doc/design_principles/des_princ.xml | 4 +--- system/doc/design_principles/statem.xml | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/system/doc/design_principles/des_princ.xml b/system/doc/design_principles/des_princ.xml index 8ab8661c2d..af5904ce78 100644 --- a/system/doc/design_principles/des_princ.xml +++ b/system/doc/design_principles/des_princ.xml @@ -225,10 +225,8 @@ free(Ch, {Alloc, Free} = Channels) ->

gen_server

For implementing the server of a client-server relation

-

gen_fsm

-

For implementing finite-state machines (Old)

gen_statem

-

For implementing state machines (New)

+

For implementing state machines

gen_event

For implementing event handling functionality

supervisor

diff --git a/system/doc/design_principles/statem.xml b/system/doc/design_principles/statem.xml index 7febe31df3..a0611a46da 100644 --- a/system/doc/design_principles/statem.xml +++ b/system/doc/design_principles/statem.xml @@ -410,14 +410,6 @@ StateName(EventType, EventContent, Data) ->
Example -

- This example starts off as equivalent to the example in section - gen_fsm Behavior. - In later sections, additions and tweaks are made - using features in gen_statem that gen_fsm does not have. - The end of this chapter provides the example again - with all the added features. -

A door with a code lock can be seen as a state machine. Initially, the door is locked. When someone presses a button, -- cgit v1.2.3