瀏覽代碼

http2: fix a typo

Change-Id: I7127c3d646042c92fbfbd45e75b08e9b3776d8e9
Reviewed-on: https://go-review.googlesource.com/c/163657
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
zoncoen 6 年之前
父節點
當前提交
fe579d43d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      http2/frame.go

+ 1 - 1
http2/frame.go

@@ -643,7 +643,7 @@ func (f *Framer) WriteData(streamID uint32, endStream bool, data []byte) error {
 	return f.WriteDataPadded(streamID, endStream, data, nil)
 }
 
-// WriteData writes a DATA frame with optional padding.
+// WriteDataPadded writes a DATA frame with optional padding.
 //
 // If pad is nil, the padding bit is not sent.
 // The length of pad must not exceed 255 bytes.