iOS Swift - Swift Language Essentials
Find the error in this Swift code snippet:
enum Action {
case move(x: Int, y: Int)
case stop
}
let action = Action.move(10, 20)
switch action {
case .move(let x, let y):
print("Moved to (\(x), \(y))")
case .stop:
print("Stopped")
}