net/http: incorrect http.ResponseController usage example in Go 1.20 release notes #57162
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?What did you do?
Pasted a HTTP ResponseController usage example from Go 1.20 release notes draft:
https://go.dev/play/p/F16HmEJ7NUU
What did you expect to see?
No build errors.
What did you see instead?
Incorrect http.ResponseController.SetWriteDeadline call — it's called with an int constant, when this method expects time.Time type.
The text was updated successfully, but these errors were encountered: