Evan Huus 12 年之前
父節點
當前提交
7f64dac45e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      utils.go

+ 2 - 2
utils.go

@@ -25,7 +25,7 @@ type Encoder interface {
 // and/or values in kafka messages
 
 // StringEncoder implements the Encoder interface for Go strings so that you can do things like
-//	producer.SendMessage(nil, kafka.StringEncoder("hello world"))
+//	producer.SendMessage(nil, sarama.StringEncoder("hello world"))
 type StringEncoder string
 
 func (s StringEncoder) Encode() ([]byte, error) {
@@ -33,7 +33,7 @@ func (s StringEncoder) Encode() ([]byte, error) {
 }
 
 // ByteEncoder implements the Encoder interface for Go byte slices so that you can do things like
-//	producer.SendMessage(nil, kafka.ByteEncoder([]byte{0x00}))
+//	producer.SendMessage(nil, sarama.ByteEncoder([]byte{0x00}))
 type ByteEncoder []byte
 
 func (b ByteEncoder) Encode() ([]byte, error) {