diff --git a/README.md b/README.md index 46784d4a..ed6467de 100644 --- a/README.md +++ b/README.md @@ -208,8 +208,8 @@ func main() { r := gin.Default() r.LoadHTMLTemplates("templates/*") r.GET("index", func(c *gin.Context) { - obj := gin.h{"title": "Main website"} - c.HTML(200, "templates/index.tmpl", obj) + obj := gin.H{"title": "Main website"} + c.HTML(200, "index.tmpl", obj) }) } ```