From 5e42b6f37e5b25783958f860f80c275d5e505c06 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Mon, 22 May 2017 13:13:07 -0700 Subject: [PATCH] Fixed comment spelling (#1254) --- codes/codes.go | 2 +- transport/transport.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codes/codes.go b/codes/codes.go index e14b464a..dcae5cc2 100644 --- a/codes/codes.go +++ b/codes/codes.go @@ -44,7 +44,7 @@ const ( // OK is returned on success. OK Code = 0 - // Canceled indicates the operation was cancelled (typically by the caller). + // Canceled indicates the operation was canceled (typically by the caller). Canceled Code = 1 // Unknown error. An example of where this error may be returned is diff --git a/transport/transport.go b/transport/transport.go index cccbaf5e..6bec5bd2 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -247,7 +247,7 @@ func (s *Stream) GoAway() <-chan struct{} { // Header acquires the key-value pairs of header metadata once it // is available. It blocks until i) the metadata is ready or ii) there is no -// header metadata or iii) the stream is cancelled/expired. +// header metadata or iii) the stream is canceled/expired. func (s *Stream) Header() (metadata.MD, error) { select { case <-s.ctx.Done():