Skip to content

Commit 2458b9d

Browse files
committed
update(docs): avoid using reserved keyword
1 parent 62f66e5 commit 2458b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/middleware/recover.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ Import the middleware package that is part of the Fiber web framework
1919
```go
2020
import (
2121
"github.com/gofiber/fiber/v3"
22-
"github.com/gofiber/fiber/v3/middleware/recover"
22+
recoverer "github.com/gofiber/fiber/v3/middleware/recover"
2323
)
2424
```
2525

2626
After you initiate your Fiber app, you can use the following possibilities:
2727

2828
```go
2929
// Initialize default config
30-
app.Use(recover.New())
30+
app.Use(recoverer.New())
3131

3232
// This panic will be caught by the middleware
3333
app.Get("/", func(c fiber.Ctx) error {

0 commit comments

Comments
 (0)