Skip to content

Commit

Permalink
Merge pull request #350 from Luke-Vear/pkg-kgo-docs-typo
Browse files Browse the repository at this point in the history
pkg/kgo: fix DefailtProduceTopic typo
  • Loading branch information
twmb authored Feb 10, 2023
2 parents 27f24f2 + de9eca2 commit 23b7119
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/kgo/record_and_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (r *Record) AppendFormat(b []byte, layout string) ([]byte, error) {

// StringRecord returns a Record with the Value field set to the input value
// string. For producing, this function is useful in tandem with the
// client-level DefailtProduceTopic option.
// client-level DefaultProduceTopic option.
//
// This function uses the 'unsafe' package to avoid copying value into a slice.
//
Expand All @@ -196,7 +196,7 @@ func StringRecord(value string) *Record {

// KeyStringRecord returns a Record with the Key and Value fields set to the
// input key and value strings. For producing, this function is useful in
// tandem with the client-level DefailtProduceTopic option.
// tandem with the client-level DefaultProduceTopic option.
//
// This function uses the 'unsafe' package to avoid copying value into a slice.
//
Expand All @@ -216,14 +216,14 @@ func KeyStringRecord(key, value string) *Record {

// SliceRecord returns a Record with the Value field set to the input value
// slice. For producing, this function is useful in tandem with the
// client-level DefailtProduceTopic option.
// client-level DefaultProduceTopic option.
func SliceRecord(value []byte) *Record {
return &Record{Value: value}
}

// KeySliceRecord returns a Record with the Key and Value fields set to the
// input key and value slices. For producing, this function is useful in
// tandem with the client-level DefailtProduceTopic option.
// tandem with the client-level DefaultProduceTopic option.
func KeySliceRecord(key, value []byte) *Record {
return &Record{Key: key, Value: value}
}
Expand Down

0 comments on commit 23b7119

Please sign in to comment.