Skip to content

Commit d0f7cd6

Browse files
knweissbrian-brazil
authored andcommitted
Fix typos found by codespell (#130)
Signed-off-by: Karsten Weiss <knweiss@gmail.com>
1 parent 38c53a9 commit d0f7cd6

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ components and libraries.
99
* **log**: A logging wrapper around [logrus](https://github.com/sirupsen/logrus)
1010
* **model**: Shared data structures
1111
* **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

expfmt/decode.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ func (sd *SampleDecoder) Decode(s *model.Vector) error {
164164
}
165165

166166
// 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
168168
// extract from the remaining metric families. The returned error is the last
169-
// error that has occured.
169+
// error that has occurred.
170170
func ExtractSamples(o *DecodeOptions, fams ...*dto.MetricFamily) (model.Vector, error) {
171171
var (
172172
all model.Vector

expfmt/text_parse.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ func (p *TextParser) readTokenUntilWhitespace() {
556556
// byte considered is the byte already read (now in p.currentByte). The first
557557
// newline byte encountered is still copied into p.currentByte, but not into
558558
// 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.
561561
func (p *TextParser) readTokenUntilNewline(recognizeEscapeSequence bool) {
562562
p.currentToken.Reset()
563563
escaped := false

model/silence.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func (m *Matcher) Validate() error {
5959
return nil
6060
}
6161

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.
6464
type Silence struct {
6565
ID uint64 `json:"id,omitempty"`
6666

model/value.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (s *SamplePair) UnmarshalJSON(b []byte) error {
100100
}
101101

102102
// 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.
104104
func (s *SamplePair) Equal(o *SamplePair) bool {
105105
return s == o || (s.Value.Equal(o.Value) && s.Timestamp.Equal(o.Timestamp))
106106
}
@@ -117,7 +117,7 @@ type Sample struct {
117117
}
118118

119119
// 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.
121121
func (s *Sample) Equal(o *Sample) bool {
122122
if s == o {
123123
return true

0 commit comments

Comments
 (0)