瀏覽代碼

Fix doc typo

Evan Huus 10 年之前
父節點
當前提交
4025ed88bf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      consumer.go

+ 2 - 2
consumer.go

@@ -402,8 +402,8 @@ func (child *PartitionConsumer) AsyncClose() {
 	close(child.dying)
 	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.
 // call this before calling Close on the underlying client.
 func (child *PartitionConsumer) Close() error {
 func (child *PartitionConsumer) Close() error {
 	child.AsyncClose()
 	child.AsyncClose()