浏览代码

chore: fix typo and add a little anotation (#1562)

田欧 7 年之前
父节点
当前提交
f2cd3fcb2a
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      debug.go
  2. 1 1
      routergroup.go

+ 1 - 0
debug.go

@@ -16,6 +16,7 @@ func IsDebugging() bool {
 	return ginMode == debugCode
 }
 
+// DebugPrintRouteFunc indicates debug log output format.
 var DebugPrintRouteFunc func(httpMethod, absolutePath, handlerName string, nuHandlers int)
 
 func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {

+ 1 - 1
routergroup.go

@@ -17,7 +17,7 @@ type IRouter interface {
 	Group(string, ...HandlerFunc) *RouterGroup
 }
 
-// Iroutes defins all router handle interface.
+// IRoutes defines all router handle interface.
 type IRoutes interface {
 	Use(...HandlerFunc) IRoutes