修复枚举中的.
This commit is contained in:
@ -162,12 +162,12 @@ enum TriStateSwitch {
|
|||||||
case Off, Low, High
|
case Off, Low, High
|
||||||
mutating func next() {
|
mutating func next() {
|
||||||
switch self {
|
switch self {
|
||||||
case Off:
|
case .Off:
|
||||||
self = Low
|
self = .Low
|
||||||
case Low:
|
case .Low:
|
||||||
self = High
|
self = .High
|
||||||
case High:
|
case .High:
|
||||||
self = Off
|
self = .Off
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user