From d03231d9ce361a154e0f9775f9bc036241d3b381 Mon Sep 17 00:00:00 2001 From: Alexander Yastrebov Date: Sat, 17 Dec 2022 12:47:53 +0000 Subject: [PATCH] doc/go1.20: fix http.ResponseController example Fixes #57162 Change-Id: I190810d702e503822265b12c56db69ec1093233c GitHub-Last-Rev: e8b259d4b37523f1992fb92d99cbe068ab070eb2 GitHub-Pull-Request: golang/go#57385 Reviewed-on: https://go-review.googlesource.com/c/go/+/458275 Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov Reviewed-by: Matt Layher TryBot-Result: Gopher Robot Run-TryBot: Dmitri Shuralyov Reviewed-by: Heschi Kreinick --- doc/go1.20.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go1.20.html b/doc/go1.20.html index aec3e252859..6da4f6df231 100644 --- a/doc/go1.20.html +++ b/doc/go1.20.html @@ -458,7 +458,7 @@ Do not send CLs removing the interior tags from such phrases.
 func RequestHandler(w ResponseWriter, r *Request) {
   rc := http.NewResponseController(w)
-  rc.SetWriteDeadline(0) // disable Server.WriteTimeout when sending a large response
+  rc.SetWriteDeadline(time.Time{}) // disable Server.WriteTimeout when sending a large response
   io.Copy(w, bigData)
 }