Skip to content

Commit

Permalink
Fix spelling errors reported by misspell (segmentio#750)
Browse files Browse the repository at this point in the history
* fix formatting + require Go 1.15

* fix spelling errors
  • Loading branch information
Achille authored Sep 28, 2021
1 parent a473679 commit 1ca9e66
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test:
test:
KAFKA_SKIP_NETTEST=1 \
KAFKA_VERSION=2.3.1 \
go test -race -cover ./...

docker:
docker-compose up -d
docker:
docker-compose up -d
2 changes: 1 addition & 1 deletion addoffsetstotxn.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type AddOffsetsToTxnResponse struct {
// The amount of time that the broker throttled the request.
Throttle time.Duration

// An error that may have occured when attempting to add the offsets
// An error that may have occurred when attempting to add the offsets
// to a transaction.
//
// The errors contain the kafka error code. Programs may use the standard
Expand Down
2 changes: 1 addition & 1 deletion addpartitionstotxn.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type AddPartitionToTxnPartition struct {
// The ID of the partition.
Partition int

// An error that may have occured when attempting to add the partition
// An error that may have occurred when attempting to add the partition
// to a transaction.
//
// The errors contain the kafka error code. Programs may use the standard
Expand Down
2 changes: 1 addition & 1 deletion compress/zstd/zstd.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (w *writer) Close() error {
if err != nil {
w.err = err
}
w.enc.Reset(devNull{}) // don't retain the underyling writer
w.enc.Reset(devNull{}) // don't retain the underlying writer
w.c.encoderPool.Put(w.enc)
w.enc = nil
return err
Expand Down
2 changes: 1 addition & 1 deletion endtxn.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type EndTxnRequest struct {
// The epoch associated with the current producer session for the given PID
ProducerEpoch int

// Committed should be set to true if the transaction was commited, false otherwise.
// Committed should be set to true if the transaction was committed, false otherwise.
Committed bool
}

Expand Down
2 changes: 1 addition & 1 deletion heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type HeartbeatRequest struct {

// HeartbeatResponse represents a response from a heartbeat request.
type HeartbeatResponse struct {
// Error is set to non-nil if an error occured.
// Error is set to non-nil if an error occurred.
Error error

// The amount of time that the broker throttled the request.
Expand Down

0 comments on commit 1ca9e66

Please sign in to comment.