소스 검색

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>
Brad Fitzpatrick 10 년 전
부모
커밋
1aafd77e1e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      context/context.go

+ 1 - 1
context/context.go

@@ -61,7 +61,7 @@ type Context interface {
 	//
 	//
 	//  // Stream generates values with DoSomething and sends them to out
 	//  // Stream generates values with DoSomething and sends them to out
 	//  // until DoSomething returns an error or ctx.Done is closed.
 	//  // 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 {
 	//  	for {
 	//  		v, err := DoSomething(ctx)
 	//  		v, err := DoSomething(ctx)
 	//  		if err != nil {
 	//  		if err != nil {