Skip to content

Commit

Permalink
Merge pull request #1 from vgarvardt/fix/readme-example-typo
Browse files Browse the repository at this point in the history
fix: readme example typo
  • Loading branch information
umputun authored Feb 25, 2024
2 parents 13e8ea2 + 0f5547d commit c3e8b2d
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 @@ -99,7 +99,7 @@ You can also use the `Route` method to add routes and middleware in a single fun
```go
mux := http.NewServeMux()
group := routegroup.New(mux)
group.Route(b func(*routegroup.Bundle) {
group.Route(func(b *routegroup.Bundle) {
b.Use(loggingMiddleware, corsMiddleware)
b.Handle("GET /hello", helloHandler)
b.Handle("GET /bye", byeHandler)
Expand Down

0 comments on commit c3e8b2d

Please sign in to comment.