Skip to content

Commit c4692da

Browse files
committed
fix grammer and undo unncessary diffs
1 parent 7dd0e9f commit c4692da

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

internal/testutils/stats/test_metrics_recorder.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,17 @@ func (r *TestMetricsRecorder) HandleConn(context.Context, stats.ConnStats) {}
278278
// nil panics.
279279
type NoopMetricsRecorder struct{}
280280

281-
// RecordInt64Count noop implementation of RecordInt64Count.
281+
// RecordInt64Count is a noop implementation of RecordInt64Count.
282282
func (r *NoopMetricsRecorder) RecordInt64Count(*estats.Int64CountHandle, int64, ...string) {}
283283

284-
// RecordFloat64Count is noop implementation of RecordFloat64Count.
284+
// RecordFloat64Count is a noop implementation of RecordFloat64Count.
285285
func (r *NoopMetricsRecorder) RecordFloat64Count(*estats.Float64CountHandle, float64, ...string) {}
286286

287-
// RecordInt64Histo is noop implementation of RecordInt64Histo.
287+
// RecordInt64Histo is a noop implementation of RecordInt64Histo.
288288
func (r *NoopMetricsRecorder) RecordInt64Histo(*estats.Int64HistoHandle, int64, ...string) {}
289289

290-
// RecordFloat64Histo is noop implementation of RecordFloat64Histo.
290+
// RecordFloat64Histo is a noop implementation of RecordFloat64Histo.
291291
func (r *NoopMetricsRecorder) RecordFloat64Histo(*estats.Float64HistoHandle, float64, ...string) {}
292292

293-
// RecordInt64Gauge is noop implementation of RecordInt64Gauge.
293+
// RecordInt64Gauge is a noop implementation of RecordInt64Gauge.
294294
func (r *NoopMetricsRecorder) RecordInt64Gauge(*estats.Int64GaugeHandle, int64, ...string) {}

mem/buffers.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,12 @@ func SplitUnsafe(buf Buffer, n int) (left, right Buffer) {
214214
return buf.split(n)
215215
}
216216

217-
// emptyBuffer is a Buffer implementation that represents an empty buffer. All
218-
// methods are no-op implementations.
219217
type emptyBuffer struct{}
220218

221219
func (e emptyBuffer) ReadOnlyData() []byte {
222220
return nil
223221
}
222+
224223
func (e emptyBuffer) Ref() {}
225224
func (e emptyBuffer) Free() {}
226225

@@ -243,13 +242,13 @@ type SliceBuffer []byte
243242
// ReadOnlyData returns the byte slice.
244243
func (s SliceBuffer) ReadOnlyData() []byte { return s }
245244

246-
// Ref is noop implementation of Ref.
245+
// Ref is a noop implementation of Ref.
247246
func (s SliceBuffer) Ref() {}
248247

249-
// Free is noop implementation of Free.
248+
// Free is a noop implementation of Free.
250249
func (s SliceBuffer) Free() {}
251250

252-
// Len is noop implementation of Len.
251+
// Len is a noop implementation of Len.
253252
func (s SliceBuffer) Len() int { return len(s) }
254253

255254
func (s SliceBuffer) split(n int) (left, right Buffer) {

0 commit comments

Comments
 (0)