Skip to content

Commit c0ba9ce

Browse files
committed
Update README.md
1 parent 83154dd commit c0ba9ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ enum MyState: StateType {
1515
case State0, State1, State2
1616
case AnyState // create case=Any
1717

18-
static func convertFromNilLiteral() -> MyState { return AnyState }
18+
init(nilLiteral: Void) {
19+
self = AnyState
20+
}
1921
}
2022
```
2123

0 commit comments

Comments
 (0)