Browse Source

Fixing two typos

DiSiqueira 8 years ago
parent
commit
7d13d169ae
2 changed files with 2 additions and 2 deletions
  1. 1 1
      broker.go
  2. 1 1
      client.go

+ 1 - 1
broker.go

@@ -52,7 +52,7 @@ type responsePromise struct {
 	errors        chan error
 }
 
-// NewBroker creates and returns a Broker targetting the given host:port address.
+// NewBroker creates and returns a Broker targeting the given host:port address.
 // This does not attempt to actually connect, you have to call Open() for that.
 func NewBroker(addr string) *Broker {
 	return &Broker{id: -1, addr: addr}

+ 1 - 1
client.go

@@ -136,7 +136,7 @@ func NewClient(addrs []string, conf *Config) (Client, error) {
 		client.seedBrokers = append(client.seedBrokers, NewBroker(addrs[index]))
 	}
 
-	// do an initial fetch of all cluster metadata by specifing an empty list of topics
+	// do an initial fetch of all cluster metadata by specifying an empty list of topics
 	err := client.RefreshMetadata()
 	switch err {
 	case nil: