aboutsummaryrefslogtreecommitdiff
path: root/src/text/template
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2022-03-22 20:53:10 +0000
committerIan Lance Taylor <iant@golang.org>2022-03-31 05:34:15 +0000
commit2b8178c14d8f71a3f022653c2e779e92eea9cdec (patch)
tree805b78ae5e5c96436ae6426948a8d721ea6bb122 /src/text/template
parenta80070e0cf0b65d619b6669a789d27746a5b2126 (diff)
downloadgo-2b8178c14d8f71a3f022653c2e779e92eea9cdec.tar.xz
text/template: remove newline special casing in documentation
Updates #29770 Fixes #51872 Change-Id: Icee660c8cc6c69a79ad11e818dd8ab40a344e800 Reviewed-on: https://go-review.googlesource.com/c/go/+/394676 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Trust: Daniel Martí <mvdan@mvdan.cc> Trust: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/text/template')
-rw-r--r--src/text/template/doc.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/text/template/doc.go b/src/text/template/doc.go
index 10093881fb..58cc97371b 100644
--- a/src/text/template/doc.go
+++ b/src/text/template/doc.go
@@ -18,7 +18,6 @@ structure as execution proceeds.
The input text for a template is UTF-8-encoded text in any format.
"Actions"--data evaluations or control structures--are delimited by
"{{" and "}}"; all text outside actions is copied to the output unchanged.
-Except for raw strings, actions may not span newlines, although comments can.
Once parsed, a template may be executed safely in parallel, although if parallel
executions share a Writer the output may be interleaved.