Skip to content

Commit 0e172e4

Browse files
authored
chore: fix some typos (#755)
Signed-off-by: dockercui <[email protected]>
1 parent 509959f commit 0e172e4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

interceptors/protovalidate/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description of the validation failure.
99
1010
It supports two ways of work:
1111
12-
1. use new annotations that will be catched and processed by `protovalidate-go` package.
12+
1. use new annotations that will be caught and processed by `protovalidate-go` package.
1313
1414
2. use legacy mode, annotations will be same as for `protoc-gen-validate` and `Validate()` method will be generated.
1515

interceptors/selector/selector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func TestStreamServerInterceptor(t *testing.T) {
8888
assert.Nil(t, err)
8989
})
9090

91-
t.Run("slected", func(t *testing.T) {
91+
t.Run("selected", func(t *testing.T) {
9292
info := &grpc.StreamServerInfo{
9393
FullMethod: svcMethod,
9494
}

providers/prometheus/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (s *ClientInterceptorTestSuite) TestStreamingIncrementsMetrics() {
9191
ss, err = s.Client.PingList(s.SimpleCtx(), &testpb.PingListRequest{ErrorCodeReturned: uint32(codes.FailedPrecondition)})
9292
require.NoError(s.T(), err, "PingList must not fail immediately")
9393

94-
// Do a read, just to progate errors.
94+
// Do a read, just to propagate errors.
9595
_, err = ss.Recv()
9696
st, _ := status.FromError(err)
9797
require.Equal(s.T(), codes.FailedPrecondition, st.Code(), "Recv must return FailedPrecondition, otherwise the test is wrong")

providers/prometheus/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func WithHistogramBuckets(buckets []float64) HistogramOption {
7575
// This function is helpful when specifying more than just the buckets, like using NativeHistograms.
7676
func WithHistogramOpts(opts *prometheus.HistogramOpts) HistogramOption {
7777
// TODO: This isn't ideal either if new fields are added to prometheus.HistogramOpts.
78-
// Maybe we can change the interface to accept abitrary HistogramOpts and
78+
// Maybe we can change the interface to accept arbitrary HistogramOpts and
7979
// only make sure to overwrite the necessary fields (name, labels).
8080
return func(o *prometheus.HistogramOpts) {
8181
o.Buckets = opts.Buckets

0 commit comments

Comments
 (0)