git » go-net » commit 1aafd77

context: fix doc typo

author Brad Fitzpatrick
2016-04-27 01:54:49 UTC
committer Brad Fitzpatrick
2016-04-27 15:28:33 UTC
parent cb0ed7acc4f717d79a358093419e5a7da09b8b45

context: fix doc typo

Fixes golang/go#15449

Change-Id: Ib4802dc1d9208abc17ef31212d49f03f4f4ed3d1
Reviewed-on: https://go-review.googlesource.com/22494
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>

context/context.go +1 -1

diff --git a/context/context.go b/context/context.go
index 7350678..134654c 100644
--- a/context/context.go
+++ b/context/context.go
@@ -61,7 +61,7 @@ type Context interface {
 	//
 	//  // Stream generates values with DoSomething and sends them to out
 	//  // until DoSomething returns an error or ctx.Done is closed.
-	//  func Stream(ctx context.Context, out <-chan Value) error {
+	//  func Stream(ctx context.Context, out chan<- Value) error {
 	//  	for {
 	//  		v, err := DoSomething(ctx)
 	//  		if err != nil {