diff --git a/README.md b/README.md index 444f6d4d..46784d4a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ import "github.com/gin-gonic/gin" func main() { r := gin.Default() r.GET("ping", func(c *gin.Context){ - c.String("pong") + c.String(200, "pong") }) // Listen and server on 0.0.0.0:8080