Skip to content

Commit 1ca9e66

Browse files
author
Achille
authored
Fix spelling errors reported by misspell (#750)
* fix formatting + require Go 1.15 * fix spelling errors
1 parent a473679 commit 1ca9e66

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
test:
1+
test:
22
KAFKA_SKIP_NETTEST=1 \
33
KAFKA_VERSION=2.3.1 \
44
go test -race -cover ./...
55

6-
docker:
7-
docker-compose up -d
6+
docker:
7+
docker-compose up -d

addoffsetstotxn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type AddOffsetsToTxnResponse struct {
3333
// The amount of time that the broker throttled the request.
3434
Throttle time.Duration
3535

36-
// An error that may have occured when attempting to add the offsets
36+
// An error that may have occurred when attempting to add the offsets
3737
// to a transaction.
3838
//
3939
// The errors contain the kafka error code. Programs may use the standard

addpartitionstotxn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type AddPartitionToTxnPartition struct {
5050
// The ID of the partition.
5151
Partition int
5252

53-
// An error that may have occured when attempting to add the partition
53+
// An error that may have occurred when attempting to add the partition
5454
// to a transaction.
5555
//
5656
// The errors contain the kafka error code. Programs may use the standard

compress/zstd/zstd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (w *writer) Close() error {
144144
if err != nil {
145145
w.err = err
146146
}
147-
w.enc.Reset(devNull{}) // don't retain the underyling writer
147+
w.enc.Reset(devNull{}) // don't retain the underlying writer
148148
w.c.encoderPool.Put(w.enc)
149149
w.enc = nil
150150
return err

endtxn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type EndTxnRequest struct {
2323
// The epoch associated with the current producer session for the given PID
2424
ProducerEpoch int
2525

26-
// Committed should be set to true if the transaction was commited, false otherwise.
26+
// Committed should be set to true if the transaction was committed, false otherwise.
2727
Committed bool
2828
}
2929

heartbeat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type HeartbeatRequest struct {
3030

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

3636
// The amount of time that the broker throttled the request.

0 commit comments

Comments
 (0)