From 5c241fc05cee60debf76bfbf6f3b63013f9f4505 Mon Sep 17 00:00:00 2001 From: Kacy James Date: Sat, 5 May 2018 13:33:32 -0700 Subject: [PATCH] Update routing.md Updated routing.md to reflect api changes. --- 3.0/docs/getting-started/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.0/docs/getting-started/routing.md b/3.0/docs/getting-started/routing.md index ddbe0045..d1cd3a44 100644 --- a/3.0/docs/getting-started/routing.md +++ b/3.0/docs/getting-started/routing.md @@ -54,7 +54,7 @@ you want to get an item with a supplied identifier, e.g., `GET /users/:id` ```swift router.get("users", Int.parameter) { req -> String in - let id = try req.parameter(Int.self) + let id = try req.parameters.next(Int.self) return "requested id #\(id)" } ```