area: networkinggood first issuetype: bug
倉庫指標
- Star
- (12,713 star)
- PR 合併指標
- (平均合併 4天 22小時) (30 天內合併 184 個 PR)
描述
The doc says
// Unlike io.Writer.Write, Endpoint.Write transfers ownership of any bytes
// successfully written to the Endpoint. That is, if a call to
// Write(SlicePayload{data}) returns (n, err), it may retain data[:n], and
// the caller should not use data[:n] after Write returns.
but the signature of Write has since changed. It no longer accepts a slice payload, so this advice is no longer applicable.