]> Cypherpunks repositories - gostls13.git/commitdiff
template: fixed documentation formatting
authorScott Lawrence <bytbox@gmail.com>
Wed, 1 Sep 2010 02:07:40 +0000 (19:07 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 1 Sep 2010 02:07:40 +0000 (19:07 -0700)
What was meant to be a list appeared as a paragraph with dashes.

R=golang-dev, gri1, gri
CC=golang-dev
https://golang.org/cl/2100041

src/pkg/template/template.go

index a448bc0539bfff7330acf5d7fff5ff44f0a5d5b8..d4640fabb1df8f8eb36eb91e4ba13aa5715b67f5 100644 (file)
        indirection.
 
        In the following, 'field' is one of several things, according to the data.
-       - the name of a field of a struct (result = data.field)
-       - the value stored in a map under that key (result = data[field])
-       - the result of invoking a niladic single-valued method with that name
-          (result = data.field())
+
+               - The name of a field of a struct (result = data.field),
+               - The value stored in a map under that key (result = data[field]), or
+               - The result of invoking a niladic single-valued method with that name
+                 (result = data.field())
 
        Major constructs ({} are metacharacters; [] marks optional elements):