Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Jul 13, 2024
1 parent f0a0038 commit ea5ce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ handler.appendRoute("GET /creature/:name?type=:beast") { request in
}
```

With Swift 5.9, closure routes can include parameters that are automatically extracted from the request and passed to the handler:
With Swift 5.9, closures can include parameters that are automatically extracted from the request and passed to the handler:

```swift
handler.appendRoute("GET /creature/:name?type=:beast") { (name: String, beast: Beast) -> HTTPResponse in
Expand Down

0 comments on commit ea5ce53

Please sign in to comment.