Merge pull request #13743 from carrychair/main

fix function and struct names in comments
This commit is contained in:
Julien 2024-03-12 11:50:25 +01:00 committed by GitHub
commit ca57bd6352
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1856,7 +1856,7 @@ func (ev *evaluator) eval(expr parser.Expr) (parser.Value, annotations.Annotatio
panic(fmt.Errorf("unhandled expression of type: %T", expr)) panic(fmt.Errorf("unhandled expression of type: %T", expr))
} }
// reuseOrGetFPointSlices reuses the space from previous slice to create new slice if the former has lots of room. // reuseOrGetHPointSlices reuses the space from previous slice to create new slice if the former has lots of room.
// The previous slices capacity is adjusted so when it is re-used from the pool it doesn't overflow into the new one. // The previous slices capacity is adjusted so when it is re-used from the pool it doesn't overflow into the new one.
func reuseOrGetHPointSlices(prevSS *Series, numSteps int) (r []HPoint) { func reuseOrGetHPointSlices(prevSS *Series, numSteps int) (r []HPoint) {
if prevSS != nil && cap(prevSS.Histograms)-2*len(prevSS.Histograms) > 0 { if prevSS != nil && cap(prevSS.Histograms)-2*len(prevSS.Histograms) > 0 {

View File

@ -1829,7 +1829,7 @@ func NewStringListIter(s []string) StringIter {
return &stringListIter{l: s} return &stringListIter{l: s}
} }
// symbolsIter implements StringIter. // stringListIter implements StringIter.
type stringListIter struct { type stringListIter struct {
l []string l []string
cur string cur string