aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Lawrence <bytbox@gmail.com>2010-08-31 19:07:40 -0700
committerRobert Griesemer <gri@golang.org>2010-08-31 19:07:40 -0700
commit825e0deecef6e797d59c824a5a974e0175b56fe5 (patch)
tree7f3babf3e1eb4e629fa231a704f60407614f2d6d
parentcb2730e60cda5ce98e80caa2e463c81be4463a13 (diff)
downloadgo-825e0deecef6e797d59c824a5a974e0175b56fe5.tar.gz
go-825e0deecef6e797d59c824a5a974e0175b56fe5.zip
template: fixed documentation formatting
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
-rw-r--r--src/pkg/template/template.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pkg/template/template.go b/src/pkg/template/template.go
index a448bc0539..d4640fabb1 100644
--- a/src/pkg/template/template.go
+++ b/src/pkg/template/template.go
@@ -18,10 +18,11 @@
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):