Skip to content

Commit

Permalink
Fixed misspell invocation and some misspelled words
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovic committed Apr 21, 2017
1 parent 7a73294 commit 7fb0d8e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ before_script:
- go fmt ./...
- go vet ./...
- gosimple ./...
- misspell -error -locale US ./...
- misspell -error -locale US .
- staticcheck -ignore "$(cat staticcheck.ignore)" ./...
script:
- go test -i -race ./...
Expand Down
2 changes: 1 addition & 1 deletion enc.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *EncodedConn) Request(subject string, v interface{}, vPtr interface{}, t

// Handler is a specific callback used for Subscribe. It is generalized to
// an interface{}, but we will discover its format and arguments at runtime
// and perform the correct callback, including de-marshalling JSON strings
// and perform the correct callback, including de-marshaling JSON strings
// back into the appropriate struct based on the signature of the Handler.
//
// Handlers are expected to have one of four signatures.
Expand Down
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func ExampleEncodedConn_Subscribe() {

// BindSendChan() allows binding of a Go channel to a nats
// subject for publish operations. The Encoder attached to the
// EncodedConn will be used for marshalling.
// EncodedConn will be used for marshaling.
func ExampleEncodedConn_BindSendChan() {
nc, _ := nats.Connect(nats.DefaultURL)
c, _ := nats.NewEncodedConn(nc, "json")
Expand All @@ -241,7 +241,7 @@ func ExampleEncodedConn_BindSendChan() {

// BindRecvChan() allows binding of a Go channel to a nats
// subject for subscribe operations. The Encoder attached to the
// EncodedConn will be used for un-marshalling.
// EncodedConn will be used for un-marshaling.
func ExampleEncodedConn_BindRecvChan() {
nc, _ := nats.Connect(nats.DefaultURL)
c, _ := nats.NewEncodedConn(nc, "json")
Expand Down
2 changes: 1 addition & 1 deletion nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,7 @@ func (nc *Conn) close(status Status, doCBs bool) {
close(s.mch)
}
s.mch = nil
// Mark as invalid, for signalling to deliverMsgs
// Mark as invalid, for signaling to deliverMsgs
s.closed = true
// Mark connection closed in subscription
s.connClosed = true
Expand Down

0 comments on commit 7fb0d8e

Please sign in to comment.