Skip to content

Commit

Permalink
Update README.md (#3165)
Browse files Browse the repository at this point in the history
Missing a pointer reference when passing the context object in the route handler function. In Fiber, the context (c) is a pointer, so it should be *fiber.Ctx instead of fiber.Ctx.
  • Loading branch information
s19835 authored Oct 12, 2024
1 parent 48e82e7 commit 9dd3d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func main() {
app := fiber.New()

// Define a route for the GET method on the root path '/'
app.Get("/", func(c fiber.Ctx) error {
app.Get("/", func(c *fiber.Ctx) error {
// Send a string response to the client
return c.SendString("Hello, World 👋!")
})
Expand Down

0 comments on commit 9dd3d94

Please sign in to comment.