Skip to content

Commit 5af28a4

Browse files
committed
net/http/internal/http2: fix doc links for TrailerPrefix
The TrailerPrefix documentation linked to golang.org/pkg and used an example anchor of the form #example_ResponseWriter_trailers, which pkg.go.dev does not recognize, so the example link did not resolve. Update both links to their pkg.go.dev equivalents. Fixes #51069
1 parent e59fbed commit 5af28a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/net/http/internal/http2/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,8 +2679,8 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) {
26792679
// or known before the header is written, the normal Go trailers mechanism
26802680
// is preferred:
26812681
//
2682-
// https://golang.org/pkg/net/http/#ResponseWriter
2683-
// https://golang.org/pkg/net/http/#example_ResponseWriter_trailers
2682+
// https://pkg.go.dev/net/http#ResponseWriter
2683+
// https://pkg.go.dev/net/http#example-ResponseWriter-Trailers
26842684
const TrailerPrefix = "Trailer:"
26852685

26862686
// promoteUndeclaredTrailers permits http.Handlers to set trailers

0 commit comments

Comments
 (0)