Przeglądaj źródła

Update README.md

Fix a typo in Redirects section.
梦溪笔谈 11 lat temu
rodzic
commit
5092886e99
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      README.md

+ 4 - 3
README.md

@@ -324,12 +324,13 @@ func main() {
 
 Issuing a HTTP redirect is easy:
 
-```r.GET("/test", func(c *gin.Context) {
+```go
+r.GET("/test", func(c *gin.Context) {
 	c.Redirect(301, "http://www.google.com/")
 })
-
-Both internal and external locations are supported.
 ```
+Both internal and external locations are supported.
+
 
 #### Custom Middlewares