Skip to content

Commit cf826c6

Browse files
Luís Fonsecasideshow
authored andcommitted
Minor typo fixes (#97)
1 parent 2c31a44 commit cf826c6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ if res.Sent() {
154154

155155
## Context & Timeouts
156156

157-
For better control over request cancelations and timeouts APNS/2 supports
157+
For better control over request cancellations and timeouts APNS/2 supports
158158
contexts. Using a context can be helpful if you want to cancel all pushes when
159159
the parent process is cancelled, or need finer grained control over individual
160160
push timeouts. See the [Google post](https://blog.golang.org/context) for more

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ func (c *Client) Production() *Client {
133133
// indicating whether the notification was accepted or rejected by the APNs
134134
// gateway, or an error if something goes wrong.
135135
//
136-
// Use PushWithContext if you need better cancelation and timeout control.
136+
// Use PushWithContext if you need better cancellation and timeout control.
137137
func (c *Client) Push(n *Notification) (*Response, error) {
138138
return c.PushWithContext(nil, n)
139139
}
140140

141141
// PushWithContext sends a Notification to the APNs gateway. Context carries a
142-
// deadline and a cancelation signal and allows you to close long running
142+
// deadline and a cancellation signal and allows you to close long running
143143
// requests when the context timeout is exceeded. Context can be nil, for
144144
// backwards compatibility.
145145
//

client_go16.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"golang.org/x/net/context/ctxhttp"
1010
)
1111

12-
// A Context carries a deadline, a cancelation signal, and other values across
12+
// A Context carries a deadline, a cancellation signal, and other values across
1313
// API boundaries.
1414
//
1515
// Context's methods may be called by multiple goroutines simultaneously.

client_go17.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http"
88
)
99

10-
// A Context carries a deadline, a cancelation signal, and other values across
10+
// A Context carries a deadline, a cancellation signal, and other values across
1111
// API boundaries.
1212
//
1313
// Context's methods may be called by multiple goroutines simultaneously.

response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const (
110110
// surrounding the rejection.
111111
type Response struct {
112112

113-
// The HTTP status code retuened by APNs.
113+
// The HTTP status code returned by APNs.
114114
// A 200 value indicates that the notification was successfully sent.
115115
// For a list of other possible status codes, see table 6-4 in the Apple Local
116116
// and Remote Notification Programming Guide.

0 commit comments

Comments
 (0)