File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ components and libraries.
9
9
* ** log** : A logging wrapper around [ logrus] ( https://github.com/sirupsen/logrus )
10
10
* ** model** : Shared data structures
11
11
* ** route** : A routing wrapper around [ httprouter] ( https://github.com/julienschmidt/httprouter ) using ` context.Context `
12
- * ** version** : Version informations and metric
12
+ * ** version** : Version information and metrics
Original file line number Diff line number Diff line change @@ -164,9 +164,9 @@ func (sd *SampleDecoder) Decode(s *model.Vector) error {
164
164
}
165
165
166
166
// ExtractSamples builds a slice of samples from the provided metric
167
- // families. If an error occurs during sample extraction, it continues to
167
+ // families. If an error occurrs during sample extraction, it continues to
168
168
// extract from the remaining metric families. The returned error is the last
169
- // error that has occured .
169
+ // error that has occurred .
170
170
func ExtractSamples (o * DecodeOptions , fams ... * dto.MetricFamily ) (model.Vector , error ) {
171
171
var (
172
172
all model.Vector
Original file line number Diff line number Diff line change @@ -556,8 +556,8 @@ func (p *TextParser) readTokenUntilWhitespace() {
556
556
// byte considered is the byte already read (now in p.currentByte). The first
557
557
// newline byte encountered is still copied into p.currentByte, but not into
558
558
// p.currentToken. If recognizeEscapeSequence is true, two escape sequences are
559
- // recognized: '\\' tranlates into '\', and '\n' into a line-feed character. All
560
- // other escape sequences are invalid and cause an error.
559
+ // recognized: '\\' translates into '\', and '\n' into a line-feed character.
560
+ // All other escape sequences are invalid and cause an error.
561
561
func (p * TextParser ) readTokenUntilNewline (recognizeEscapeSequence bool ) {
562
562
p .currentToken .Reset ()
563
563
escaped := false
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ func (m *Matcher) Validate() error {
59
59
return nil
60
60
}
61
61
62
- // Silence defines the representation of a silence definiton
63
- // in the Prometheus eco-system.
62
+ // Silence defines the representation of a silence definition in the Prometheus
63
+ // eco-system.
64
64
type Silence struct {
65
65
ID uint64 `json:"id,omitempty"`
66
66
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ func (s *SamplePair) UnmarshalJSON(b []byte) error {
100
100
}
101
101
102
102
// Equal returns true if this SamplePair and o have equal Values and equal
103
- // Timestamps. The sematics of Value equality is defined by SampleValue.Equal.
103
+ // Timestamps. The semantics of Value equality is defined by SampleValue.Equal.
104
104
func (s * SamplePair ) Equal (o * SamplePair ) bool {
105
105
return s == o || (s .Value .Equal (o .Value ) && s .Timestamp .Equal (o .Timestamp ))
106
106
}
@@ -117,7 +117,7 @@ type Sample struct {
117
117
}
118
118
119
119
// Equal compares first the metrics, then the timestamp, then the value. The
120
- // sematics of value equality is defined by SampleValue.Equal.
120
+ // semantics of value equality is defined by SampleValue.Equal.
121
121
func (s * Sample ) Equal (o * Sample ) bool {
122
122
if s == o {
123
123
return true
You can’t perform that action at this time.
0 commit comments