diff --git a/README.md b/README.md index a79d29f..81a5ae3 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,12 @@ let canForceLogout: State -> Bool = [.loggingIn, .loggedIn].contains // 2. Setup state-transition mappings. let mappings: [Automaton.EffectMapping] = [ - /* Input | fromState => toState | Effect */ - /* ----------------------------------------------------------*/ - .login | .loggedOut => .loggingIn | loginOKProducer, - .loginOK | .loggingIn => .loggedIn | .empty(), - .logout | .loggedIn => .loggingOut | logoutOKProducer, - .logoutOK | .loggingOut => .loggedOut | .empty(), - + /* Input | fromState => toState | Effect */ + /* ----------------------------------------------------------------*/ + .login | .loggedOut => .loggingIn | loginOKProducer, + .loginOK | .loggingIn => .loggedIn | .empty(), + .logout | .loggedIn => .loggingOut | logoutOKProducer, + .logoutOK | .loggingOut => .loggedOut | .empty(), .forceLogout | canForceLogout => .loggingOut | forceLogoutOKProducer ]