Skip to content

Commit 51f8813

Browse files
cuishuanggopherbot
authored andcommitted
all: remove redundant words in comment
Change-Id: I3747791b019fec0ed1108752a966551cea21a603 Reviewed-on: https://go-review.googlesource.com/c/exp/+/690815 Auto-Submit: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Sean Liao <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent a408d31 commit 51f8813

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

event/event_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (t *testTraceHandler) Event(ctx context.Context, ev *event.Event) context.C
274274
}
275275

276276
func TestTraceDuration(t *testing.T) {
277-
// Verify that a trace can can emit a latency metric.
277+
// Verify that a trace can emit a latency metric.
278278
dur := event.NewDuration("test", nil)
279279
want := time.Second
280280

event/otel/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type MetricHandler struct {
2222
mu sync.Mutex
2323
// A map from event.Metrics to, effectively, otel Meters.
2424
// But since the only thing we need from the Meter is recording a value, we
25-
// use a function for that that closes over the Meter itself.
25+
// use a function for that closes over the Meter itself.
2626
recordFuncs map[event.Metric]recordFunc
2727
}
2828

event/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (c *sources) scanStack() Source {
123123
e, found := c.getCaller(pc)
124124
if found {
125125
if !e.helper {
126-
// exact non helper match match found, return it
126+
// exact non helper match found, return it
127127
return e.source
128128
}
129129
// helper found, keep scanning

sumdb/internal/tkv/tkv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Storage interface {
1919

2020
// ReadWrite runs f in a read-write transaction.
2121
// If f returns an error, the transaction aborts and returns that error.
22-
// If f returns nil, the transaction attempts to commit and then then return nil.
22+
// If f returns nil, the transaction attempts to commit and then return nil.
2323
// Otherwise it tries again. Note that f may be called multiple times and that
2424
// the result only describes the effect of the final call to f.
2525
// The caller must take care not to use any state computed during

0 commit comments

Comments
 (0)