From 492ae8934483152e81391c0523e757962d3a9e12 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 18 Sep 2015 13:31:00 -0400 Subject: [PATCH] small tweak to readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f136cc..6af3dc4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ socket.on("connect") {data, ack in } socket.on("currentAmount") {data, ack in - if let cur = data?[0] as? Double { + if let cur = data[0] as? Double { socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in socket.emit("update", ["amount": cur + 2.50]) }