From ba7c7a91b84082f21842a198999f3e71a4a09590 Mon Sep 17 00:00:00 2001 From: krystofbe Date: Fri, 2 Dec 2016 10:43:55 +0100 Subject: [PATCH] Typo --- guide/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/middleware.md b/guide/middleware.md index a1b2dcd4..248135fc 100644 --- a/guide/middleware.md +++ b/guide/middleware.md @@ -84,7 +84,7 @@ enum FooError: Error { } ``` -Say there is a custom error that either you defined or one of the APIs you are using `throw`s. This error must be caught when thrown, or else it will end up as a server error which may be unexpected to a user. The most obvious solution is to catch the error in the route closure. +Say there is a custom error that either you defined or one of the APIs you are using `throws`. This error must be caught when thrown, or else it will end up as a server error which may be unexpected to a user. The most obvious solution is to catch the error in the route closure. ```swift app.get("foo") { request in