Skip to content

Commit

Permalink
Fix exported function comments (#6002)
Browse files Browse the repository at this point in the history
Signed-off-by: zhulongcheng <zhulongcheng.dev@gmail.com>
  • Loading branch information
zhulongcheng authored and brian-brazil committed Sep 10, 2019
1 parent 3b3eaf3 commit 970ef41
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/gate/gate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Gate struct {
ch chan struct{}
}

// NewGate returns a query gate that limits the number of queries
// New returns a query gate that limits the number of queries
// being concurrently executed.
func New(length int) *Gate {
return &Gate{
Expand Down
2 changes: 1 addition & 1 deletion pkg/textparse/openmetricsparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type OpenMetricsParser struct {
offsets []int
}

// New returns a new parser of the byte slice.
// NewOpenMetricsParser returns a new parser of the byte slice.
func NewOpenMetricsParser(b []byte) Parser {
return &OpenMetricsParser{l: &openMetricsLexer{b: b}}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/textparse/promparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ type PromParser struct {
offsets []int
}

// New returns a new parser of the byte slice.
// NewPromParser returns a new parser of the byte slice.
func NewPromParser(b []byte) Parser {
return &PromParser{l: &promlexer{b: append(b, '\n')}}
}
Expand Down
2 changes: 1 addition & 1 deletion util/httputil/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var corsHeaders = map[string]string{
"Vary": "Origin",
}

// Enables cross-site script calls.
// SetCORS enables cross-site script calls.
func SetCORS(w http.ResponseWriter, o *regexp.Regexp, r *http.Request) {
origin := r.Header.Get("Origin")
if origin == "" {
Expand Down
2 changes: 1 addition & 1 deletion util/stats/query_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s QueryTiming) String() string {
}
}

// Return a string representation of a QueryTiming span operation.
// SpanOperation returns a string representation of a QueryTiming span operation.
func (s QueryTiming) SpanOperation() string {
switch s {
case EvalTotalTime:
Expand Down

0 comments on commit 970ef41

Please sign in to comment.