]> Cypherpunks repositories - gostls13.git/commitdiff
context: fix doc typo
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Apr 2016 01:54:12 +0000 (18:54 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Apr 2016 02:58:54 +0000 (02:58 +0000)
Fixes #15449

Change-Id: I8d84d076a05c56694b48f7b84f572b1a6524f522
Reviewed-on: https://go-review.googlesource.com/22493
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/context/context.go

index c332e1f4432e9c7fa064cb2a0a698481fdee4903..da294b12921bc041162d6496c81b71b7f2e641de 100644 (file)
@@ -67,7 +67,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 {