mirror of https://github.com/golang/go.git
context: fix doc typo
Fixes #15449 Change-Id: I8d84d076a05c56694b48f7b84f572b1a6524f522 Reviewed-on: https://go-review.googlesource.com/22493 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
0b5fbf7098
commit
87bca88c70
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue