Explorar el Código

@escaping attribute may only be used in function parameter position

Roman Dzieciol hace 9 años
padre
commit
39f465600d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/Server.swift

+ 1 - 1
Sources/Server.swift

@@ -21,7 +21,7 @@ public class Server {
         #endif
     }
     
-    public func serve(_ callback: @escaping ((request: Request, responder: @escaping ((Response) -> Void))) -> Void) throws {
+    public func serve(_ callback: @escaping ((request: Request, responder: ((Response) -> Void))) -> Void) throws {
         
         try self.server.wait { event in