Skip to content

Commit ba75045

Browse files
committed
typo fixes
1 parent 01d5ecc commit ba75045

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nosql.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ type Mutator interface {
223223
// tokens.
224224
Delete(ctx context.Context, bucket, key []byte) error
225225

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
227227
// value may already be present. It returns an error containing [ErrBucketNotFound] in its chain
228228
// when the given bucket does not exist.
229229
//
230230
// See [DB] for the validations Put performs on the provided bucket, key and value tokens.
231231
Put(ctx context.Context, bucket, key, value []byte) error
232232

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
234234
// error containing [ErrBucketNotFound] in its chain, when the bucket of any given
235235
// [Record] does not exist.
236236
//
@@ -260,13 +260,13 @@ func (r *Record) GoString() string {
260260
return fmt.Sprintf("nosql.Record{%q, %q, %q}", r.Bucket, r.Key, r.Value)
261261
}
262262

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.
265265
type CompactedByFactor interface {
266266
CompactByFactor(context.Context, float64) error
267267
}
268268

269-
// Copy returns a copy of the [Record].
269+
// Clone returns a copy of the [Record].
270270
func (r *Record) Clone() Record {
271271
return Record{
272272
Bucket: slices.Clone(r.Bucket),

0 commit comments

Comments
 (0)