From d2315fdc11ebdf5c0ae94f33cb01ffaab82c00b6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 19 Oct 2016 13:14:16 -0400 Subject: [PATCH] html/template: adjust ambiguous URL context text Before: ... appears in an ambiguous URL context. After: ... appears in an ambiguous context within a URL. It's a minor point, but it's confused multiple people. Try to make clearer that the ambiguity is "where exactly inside the URL?" Fixes #17319. Change-Id: Id834868d1275578036c1b00c2bdfcd733d9d2b7b Reviewed-on: https://go-review.googlesource.com/31465 Run-TryBot: Russ Cox Reviewed-by: Rob Pike TryBot-Result: Gobot Gobot --- src/html/template/error.go | 2 +- src/html/template/escape.go | 2 +- src/html/template/escape_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/html/template/error.go b/src/html/template/error.go index 5637384bd8..cbcaf92e4a 100644 --- a/src/html/template/error.go +++ b/src/html/template/error.go @@ -44,7 +44,7 @@ const ( // OK indicates the lack of an error. OK ErrorCode = iota - // ErrAmbigContext: "... appears in an ambiguous URL context" + // ErrAmbigContext: "... appears in an ambiguous context within a URL" // Example: // `, - "z:1:47: {{.H}} appears in an ambiguous URL context", + "z:1:47: {{.H}} appears in an ambiguous context within a URL", }, { `