From 9d468f482f20f886d3c7d66c60e1ce0acbaaad44 Mon Sep 17 00:00:00 2001 From: HowJMay Date: Fri, 20 Mar 2020 08:40:38 +0000 Subject: [PATCH] doc/articles/wiki: use correct variable name in closures guide Fixes non-existent variable TitleValidator to be validPath in the closures, functions literal section. Fixes #36779 Change-Id: I59762c358c3e00d1cc03d9d1e2aace03f145321d GitHub-Last-Rev: a5e9b17a3707fc48c6d87bab3a4968f2ef63ab65 GitHub-Pull-Request: golang/go#36783 Reviewed-on: https://go-review.googlesource.com/c/go/+/216479 Reviewed-by: Emmanuel Odeke --- doc/articles/wiki/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/articles/wiki/index.html b/doc/articles/wiki/index.html index f8144bbac3..4e3a5deab5 100644 --- a/doc/articles/wiki/index.html +++ b/doc/articles/wiki/index.html @@ -674,7 +674,7 @@ The closure returned by makeHandler is a function that takes an http.ResponseWriter and http.Request (in other words, an http.HandlerFunc). The closure extracts the title from the request path, and -validates it with the TitleValidator regexp. If the +validates it with the validPath regexp. If the title is invalid, an error will be written to the ResponseWriter using the http.NotFound function. If the title is valid, the enclosed handler function -- 2.48.1