From b2f5ff81c18708c0510b003752d4bbea0d83784f Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Thu, 3 Jul 2014 22:05:16 -0700 Subject: [PATCH] context: minor typos in documentation. Learned that cancelled is appropriate for non-US English, but the function is IsCanceled, so I went with consistency. Change-Id: If63a8af75338780c2f8e81bf4404fc4b5f852d77 --- pkg/context/context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/context/context.go b/pkg/context/context.go index 1d0d0a75f..d38c41ef8 100644 --- a/pkg/context/context.go +++ b/pkg/context/context.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Packaage context provides a Context type to propagate state and cancellation +// Package context provides a Context type to propagate state and cancellation // information. package context @@ -86,7 +86,7 @@ func (p httpParam) modify(c *Context) { // New returns a child context attached to the receiver parent context c. // The returned context is done when the parent is done, but the returned child -// context can be canceled indepedently without affecting the parent. +// context can be canceled independently without affecting the parent. func (c *Context) New(params ...Param) *Context { subc := New() subc.parent = c @@ -103,7 +103,7 @@ func (c *Context) New(params ...Param) *Context { return subc } -// Done returns a channel that is closed when the Context is cancelled +// Done returns a channel that is closed when the Context is canceled // or finished. func (c *Context) Done() <-chan struct{} { if c == nil {