diff --git a/README.md b/README.md index 7ae7201b..e9f0b749 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ func main() { sub.Use(func(c *echo.Context) { // Middleware }) sub.Get("/home", func(c *echo.Context) { - c.String(200, "Sub route /sub/welcome") + c.Text(http.StatusOK, "Sub route /sub/welcome") }) // Group - doesn't inherit parent middleware @@ -125,7 +125,7 @@ func main() { grp.Use(func(c *echo.Context) { // Middleware }) grp.Get("/home", func(c *echo.Context) { - c.String(200, "Group route /group/welcome") + c.Text(http.StatusOK, "Group route /group/welcome") }) // Start server