Browse Source

Fix doc typo

Evan Huus 10 years ago
parent
commit
4025ed88bf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      consumer.go

+ 2 - 2
consumer.go

@@ -402,8 +402,8 @@ func (child *PartitionConsumer) AsyncClose() {
 	close(child.dying)
 }
 
-// Close stops the PartitionConsumer from fetching messages. It is required to call this function,
-// or AsyncCose before a consumer object passes out of scope, as it will otherwise leak memory. You must
+// Close stops the PartitionConsumer from fetching messages. It is required to call this function
+// (or AsyncClose) before a consumer object passes out of scope, as it will otherwise leak memory. You must
 // call this before calling Close on the underlying client.
 func (child *PartitionConsumer) Close() error {
 	child.AsyncClose()