Ver código fonte

Merge pull request #660 from MarianoGappa/master

Typo: occured -> occurred
Willem van Bergen 9 anos atrás
pai
commit
97511b29ac
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      config.go
  2. 1 1
      consumer.go

+ 1 - 1
config.go

@@ -189,7 +189,7 @@ type Config struct {
 		// Return specifies what channels will be populated. If they are set to true,
 		// you must read from them to prevent deadlock.
 		Return struct {
-			// If enabled, any errors that occured while consuming are returned on
+			// If enabled, any errors that occurred while consuming are returned on
 			// the Errors channel (default disabled).
 			Errors bool
 		}

+ 1 - 1
consumer.go

@@ -255,7 +255,7 @@ type PartitionConsumer interface {
 	// the broker.
 	Messages() <-chan *ConsumerMessage
 
-	// Errors returns a read channel of errors that occured during consuming, if
+	// Errors returns a read channel of errors that occurred during consuming, if
 	// enabled. By default, errors are logged and not returned over this channel.
 	// If you want to implement any custom error handling, set your config's
 	// Consumer.Return.Errors setting to true, and read from this channel.