@@ -223,14 +223,14 @@ type Mutator interface {
223
223
// tokens.
224
224
Delete (ctx context.Context , bucket , key []byte ) error
225
225
226
- // Put stores the given value in the given bucket for the given key, overwritting any existing
226
+ // Put stores the given value in the given bucket for the given key, overwriting any existing
227
227
// value may already be present. It returns an error containing [ErrBucketNotFound] in its chain
228
228
// when the given bucket does not exist.
229
229
//
230
230
// See [DB] for the validations Put performs on the provided bucket, key and value tokens.
231
231
Put (ctx context.Context , bucket , key , value []byte ) error
232
232
233
- // PutMany stores the given records, overwritting the values of any existing ones. It returns an
233
+ // PutMany stores the given records, overwriting the values of any existing ones. It returns an
234
234
// error containing [ErrBucketNotFound] in its chain, when the bucket of any given
235
235
// [Record] does not exist.
236
236
//
@@ -260,13 +260,13 @@ func (r *Record) GoString() string {
260
260
return fmt .Sprintf ("nosql.Record{%q, %q, %q}" , r .Bucket , r .Key , r .Value )
261
261
}
262
262
263
- // CompactedByFactor is the interface instances of [DB] also implement in case they support they may
264
- // be compacted by a factor.
263
+ // CompactedByFactor is the interface instances of [DB] also implement in case they support being
264
+ // compacted by a factor.
265
265
type CompactedByFactor interface {
266
266
CompactByFactor (context.Context , float64 ) error
267
267
}
268
268
269
- // Copy returns a copy of the [Record].
269
+ // Clone returns a copy of the [Record].
270
270
func (r * Record ) Clone () Record {
271
271
return Record {
272
272
Bucket : slices .Clone (r .Bucket ),
0 commit comments