From 3e5ad706997a1dc5935ea9d8e009f52a90ec2964 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Thu, 20 Apr 2023 15:10:14 -0700 Subject: [PATCH] all: fix spelling errors --- createtopics.go | 4 ++-- deletetopics.go | 2 +- produce.go | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/createtopics.go b/createtopics.go index 6767e07c8..561425a53 100644 --- a/createtopics.go +++ b/createtopics.go @@ -23,7 +23,7 @@ type CreateTopicsRequest struct { // When set to true, topics are not created but the configuration is // validated as if they were. // - // This field will be ignored if the kafka broker did no support the + // This field will be ignored if the kafka broker did not support the // CreateTopics API in version 1 or above. ValidateOnly bool } @@ -33,7 +33,7 @@ type CreateTopicsRequest struct { type CreateTopicsResponse struct { // The amount of time that the broker throttled the request. // - // This field will be zero if the kafka broker did no support the + // This field will be zero if the kafka broker did not support the // CreateTopics API in version 2 or above. Throttle time.Duration diff --git a/deletetopics.go b/deletetopics.go index 470f9ef83..d758d9fd6 100644 --- a/deletetopics.go +++ b/deletetopics.go @@ -25,7 +25,7 @@ type DeleteTopicsRequest struct { type DeleteTopicsResponse struct { // The amount of time that the broker throttled the request. // - // This field will be zero if the kafka broker did no support the + // This field will be zero if the kafka broker did not support the // DeleteTopics API in version 1 or above. Throttle time.Duration diff --git a/produce.go b/produce.go index 26281a0b8..72d1ed09b 100644 --- a/produce.go +++ b/produce.go @@ -111,8 +111,8 @@ type ProduceResponse struct { // Offset of the first record that was written to the topic partition. // - // This field will be zero if the kafka broker did no support the Produce - // API in version 3 or above. + // This field will be zero if the kafka broker did not support Produce API + // version 3 or above. BaseOffset int64 // Time at which the broker wrote the records to the topic partition. @@ -123,15 +123,15 @@ type ProduceResponse struct { // First offset in the topic partition that the records were written to. // - // This field will be zero if the kafka broker did not support Produce API - // version 5 or above (or if the first offset is zero). + // This field will be zero if the kafka broker did not support Produce + // API version 5 or above (or if the first offset is zero). LogStartOffset int64 // If errors occurred writing specific records, they will be reported in // this map. // - // This field will always be empty if the kafka broker did not support - // Produce API version 8 or above. + // This field will always be empty if the kafka broker did not support the + // Produce API in version 8 or above. RecordErrors map[int]error }