Преглед на файлове

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