Skip to content

Commit 39f4656

Browse files
author
Roman Dzieciol
committed
@escaping attribute may only be used in function parameter position
1 parent 467cf49 commit 39f4656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Server.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class Server {
2121
#endif
2222
}
2323

24-
public func serve(_ callback: @escaping ((request: Request, responder: @escaping ((Response) -> Void))) -> Void) throws {
24+
public func serve(_ callback: @escaping ((request: Request, responder: ((Response) -> Void))) -> Void) throws {
2525

2626
try self.server.wait { event in
2727

0 commit comments

Comments
 (0)