From: Mike Samuel Date: Tue, 27 Sep 2011 20:22:01 +0000 (-0700) Subject: exp/template/html: add doc comments for undocumented Err... constants. X-Git-Tag: weekly.2011-10-06~80 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0287647b1377e3d403e8b38f5c2bd4435bc21b64;p=gostls13.git 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 --- 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: + // + // + //
+ //