Przeglądaj źródła

fix misspelling (#513)

Kevin Wan 4 lat temu
rodzic
commit
56ad4776d4
3 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 1
      core/logx/logs.go
  2. 1 1
      core/logx/tracelogger.go
  3. 1 1
      core/metric/gauge.go

+ 1 - 1
core/logx/logs.go

@@ -279,7 +279,7 @@ func Statf(format string, v ...interface{}) {
 	statSync(fmt.Sprintf(format, v...))
 }
 
-// WithCooldownMillis customizes logging on writting call stack interval.
+// WithCooldownMillis customizes logging on writing call stack interval.
 func WithCooldownMillis(millis int) LogOption {
 	return func(opts *logOptions) {
 		opts.logStackCooldownMills = millis

+ 1 - 1
core/logx/tracelogger.go

@@ -67,7 +67,7 @@ func (l *traceLogger) write(writer io.Writer, level, content string) {
 	outputJson(writer, l)
 }
 
-// WithContext sets ctx to log, for keeping tracing infomation.
+// WithContext sets ctx to log, for keeping tracing information.
 func WithContext(ctx context.Context) Logger {
 	return &traceLogger{
 		ctx: ctx,

+ 1 - 1
core/metric/gauge.go

@@ -9,7 +9,7 @@ type (
 	// GaugeVecOpts is an alias of VectorOpts.
 	GaugeVecOpts VectorOpts
 
-	// GaugeVec represents a guage vector.
+	// GaugeVec represents a gauge vector.
 	GaugeVec interface {
 		// Set sets v to labels.
 		Set(v float64, labels ...string)