From 0287647b1377e3d403e8b38f5c2bd4435bc21b64 Mon Sep 17 00:00:00 2001 From: Mike Samuel Date: Tue, 27 Sep 2011 13:22:01 -0700 Subject: [PATCH] exp/template/html: add doc comments for undocumented Err... constants. Does some TODOs and changes the term "div" in an error message to "division" to avoid confusion with "
". R=nigeltao, r CC=golang-dev https://golang.org/cl/5141047 --- src/pkg/exp/template/html/error.go | 44 ++++++++++++++++++++---- src/pkg/exp/template/html/escape_test.go | 2 +- src/pkg/exp/template/html/transition.go | 2 +- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/src/pkg/exp/template/html/error.go b/src/pkg/exp/template/html/error.go index f06251d604..5515bfe68d 100644 --- a/src/pkg/exp/template/html/error.go +++ b/src/pkg/exp/template/html/error.go @@ -40,7 +40,7 @@ const ( // OK indicates the lack of an error. OK ErrorCode = iota - // ErrorAmbigContext: "... appears in an ambiguous URL context" + // ErrAmbigContext: "... appears in an ambiguous URL context" // Example: // ErrAmbigContext - // TODO: document + // ErrBadHTML: "expected space, attr name, or end of tag, but got ...", + // "... in unquoted attr", "... in attribute name" + // Example: + // + // + //
+ //