Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #6

Merged
merged 1 commit into from
Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Prequisites
## Prerequisites

1. Go: [https://golang.org/dl/](https://golang.org/dl/)
1. Golint `go get -u -v github.com/golang/lint/golint`
Expand Down
4 changes: 2 additions & 2 deletions _examples/pubsub/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var url = flag.String("url", "amqp:///", "AMQP url for both the publisher and su
const exchange = "pubsub"

// message is the application type for a message. This can contain identity,
// or a reference to the recevier chan for further demuxing.
// or a reference to the receiver chan for further demuxing.
type message []byte

// session composes an amqp.Connection with an amqp.Channel
Expand Down Expand Up @@ -168,7 +168,7 @@ func subscribe(sessions chan chan session, messages chan<- message) {
return
}

routingKey := "application specific routing key for fancy toplogies"
routingKey := "application specific routing key for fancy topologies"
if err := sub.QueueBind(queue, routingKey, exchange, false, nil); err != nil {
log.Printf("cannot consume without a binding to exchange: %q, %v", exchange, err)
return
Expand Down
2 changes: 1 addition & 1 deletion connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestConcurrentClose(t *testing.T) {
wg.Wait()
}

// TestPlaintextDialTLS esnures amqp:// connections succeed when using DialTLS.
// TestPlaintextDialTLS ensures amqp:// connections succeed when using DialTLS.
func TestPlaintextDialTLS(t *testing.T) {
uri, err := ParseURI(integrationURLFromEnv())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion delivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var errDeliveryNotInitialized = errors.New("delivery not initialized")

// Acknowledger notifies the server of successful or failed consumption of
// delivieries via identifier found in the Delivery.DeliveryTag field.
// deliveries via identifier found in the Delivery.DeliveryTag field.
//
// Applications can provide mock implementations in tests of Delivery handlers.
type Acknowledger interface {
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.

/*
package amqp091 is an AMQP 0.9.1 client with RabbitMQ extensions
Package amqp091 is an AMQP 0.9.1 client with RabbitMQ extensions

Understand the AMQP 0.9.1 messaging model by reviewing these links first. Much
of the terminology in this library directly relates to AMQP concepts.
Expand Down Expand Up @@ -58,7 +58,7 @@ of band from an RPC call like basic.ack or basic.flow.

Any asynchronous events, including Deliveries and Publishings must always have
a receiver until the corresponding chans are closed. Without asynchronous
receivers, the sychronous methods will block.
receivers, the synchronous methods will block.

Use Case

Expand Down
2 changes: 1 addition & 1 deletion example_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (session *Session) Push(data []byte) error {
// UnsafePush will push to the queue without checking for
// confirmation. It returns an error if it fails to connect.
// No guarantees are provided for whether the server will
// recieve the message.
// receive the message.
func (session *Session) UnsafePush(data []byte) error {
if !session.isReady {
return errNotConnected
Expand Down
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func ExampleConfig_timeout() {
// Provide your own anonymous Dial function that delgates to net.DialTimout
// Provide your own anonymous Dial function that delegates to net.DialTimout
// for custom timeouts

conn, err := amqp.DialConfig("amqp:///", amqp.Config{
Expand Down
2 changes: 1 addition & 1 deletion read.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

/*
Reads a frame from an input stream and returns an interface that can be cast into
ReadFrame reads a frame from an input stream and returns an interface that can be cast into
one of the following:

methodFrame
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
ErrChannelMax = &Error{Code: ChannelError, Reason: "channel id space exhausted"}

// ErrSASL is returned from Dial when the authentication mechanism could not
// be negoated.
// be negotiated.
ErrSASL = &Error{Code: AccessRefused, Reason: "SASL could not negotiate a shared mechanism"}

// ErrCredentials is returned when the authenticated client is not authorized
Expand Down