Skip to content

Commit 2736a7b

Browse files
committed
Update documentation to reflect Xcode 8 beta 6 changes to RouteMapping and StateRouteMapping.
1 parent f0c70e3 commit 2736a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ If there is no `Event`-based transition, use built-in `NoEvent` instead.
108108
Above examples use _arrow-style routing_ which are easy to understand, but it lacks in ability to handle **state & event enums with associated values**. In such cases, use either of the following functions to apply _closure-style routing_:
109109

110110
- `machine.addRouteMapping(routeMapping)`
111-
- `RouteMapping`: `(event: E?, fromState: S, userInfo: Any?) -> S?`
111+
- `RouteMapping`: `(_ event: E?, _ fromState: S, _ userInfo: Any?) -> S?`
112112
- `machine.addStateRouteMapping(stateRouteMapping)`
113-
- `StateRouteMapping`: `(fromState: S, userInfo: Any?) -> [S]?`
113+
- `StateRouteMapping`: `(_ fromState: S, _ userInfo: Any?) -> [S]?`
114114

115115
For example:
116116

0 commit comments

Comments
 (0)