Skip to content

Commit

Permalink
docs: fix invalid example on Context.Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerwill90 committed Oct 13, 2024
1 parent 29d1f69 commit 3d262f5
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 @@ -175,7 +175,7 @@ func Hello(c fox.Context) {
cc := c.Clone()
go func() {
time.Sleep(2 * time.Second)
log.Println(c.Param("name")) // Safe
log.Println(cc.Param("name")) // Safe
}()
_ = c.String(http.StatusOK, "Hello %s\n", c.Param("name"))
}
Expand Down

0 comments on commit 3d262f5

Please sign in to comment.