浏览代码

minor typo in routergroup.go (#1360)

MW Lim 7 年之前
父节点
当前提交
c2f083fc95
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routergroup.go

+ 1 - 1
routergroup.go

@@ -139,7 +139,7 @@ func (group *RouterGroup) Any(relativePath string, handlers ...HandlerFunc) IRou
 	return group.returnObj()
 }
 
-// StaticFile registers a single route in order to server a single file of the local filesystem.
+// StaticFile registers a single route in order to serve a single file of the local filesystem.
 // router.StaticFile("favicon.ico", "./resources/favicon.ico")
 func (group *RouterGroup) StaticFile(relativePath, filepath string) IRoutes {
 	if strings.Contains(relativePath, ":") || strings.Contains(relativePath, "*") {