diff --git a/middleware/timeout/README.md b/middleware/timeout/README.md index 2687faa1a9..4406d1ffac 100644 --- a/middleware/timeout/README.md +++ b/middleware/timeout/README.md @@ -22,9 +22,13 @@ import ( After you initiate your Fiber app, you can use the following possibilities: ```go -handler := func(ctx *fiber.Ctx) { - ctx.Send("Hello, World 👋!") +handler := func(ctx *fiber.Ctx) error { + err := ctx.SendString("Hello, World 👋!") + if err != nil { + return err + } + return nil } app.Get("/foo", timeout.New(handler, 5 * time.Second)) -``` \ No newline at end of file +```