Skip to content

Commit 83154dd

Browse files
committed
Merge pull request #13 from nwest/readme-syntax-highlighting
Enable Swift syntax highlighting in README
2 parents 2cd54e4 + 88cb721 commit 83154dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Also check out for sister project: [SwiftTask](https://github.com/inamiy/SwiftTa
1010

1111
## Example
1212

13-
```
13+
```swift
1414
enum MyState: StateType {
1515
case State0, State1, State2
1616
case AnyState // create case=Any
@@ -19,7 +19,7 @@ enum MyState: StateType {
1919
}
2020
```
2121

22-
```
22+
```swift
2323
let machine = StateMachine<MyState, MyEvent>(state: .State0) { machine in
2424

2525
machine.addRoute(.State0 => .State1)
@@ -48,7 +48,7 @@ println("machine.state = \(machine.state)")
4848

4949
This will print:
5050

51-
```
51+
```swift
5252
0 => 1
5353
Any => 2, msg=Hello
5454
2 => Any, msg=Bye

0 commit comments

Comments
 (0)