📚 Doc: Update recover docs to not use reserved keyword (#3129)

update(docs): avoid using reserved keyword
pull/3133/head
Glen Sargent 2024-09-11 19:42:53 +01:00 committed by GitHub
parent 62f66e5968
commit 96891c93d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ Import the middleware package that is part of the Fiber web framework
```go
import (
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/recover"
recoverer "github.com/gofiber/fiber/v3/middleware/recover"
)
```
@ -27,7 +27,7 @@ After you initiate your Fiber app, you can use the following possibilities:
```go
// Initialize default config
app.Use(recover.New())
app.Use(recoverer.New())
// This panic will be caught by the middleware
app.Get("/", func(c fiber.Ctx) error {