Skip to content

Fix Endpoint.Write documentation#13274

Open
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:codex/gvisor-tcpip-write-doc
Open

Fix Endpoint.Write documentation#13274
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:codex/gvisor-tcpip-write-doc

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Fixes #6024

Summary

Update the tcpip.Endpoint.Write API comment so it no longer refers to the removed SlicePayload call shape. The ownership guidance still applies, but the example now matches the current Write(Payloader, WriteOptions) signature and describes the first n bytes fetched from the payloader.

Testing

  • git diff --check
  • bazel test //pkg/tcpip:tcpip_test //pkg/tcpip:tcpip_x_test

Note: go test ./pkg/tcpip was not used as validation because this repo relies on generated files from the Bazel path; the direct Go command fails before reaching this change with missing generated types such as ViewList and waiterEntry.

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 24, 2026 11:22
@Haihan-Jiang Haihan-Jiang changed the title [codex] Fix Endpoint.Write documentation Fix Endpoint.Write documentation May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tcpip.Endpoint.Write() doc is out of date

1 participant