]> Cypherpunks repositories - gostls13.git/commitdiff
html/template: fix example code
authorAndrew Gerrand <adg@golang.org>
Wed, 21 Jan 2015 02:33:37 +0000 (13:33 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 21 Jan 2015 04:13:06 +0000 (04:13 +0000)
Fixes #9651

Change-Id: I987833b6263482a402e58fcd9eeb0e42401599b5
Reviewed-on: https://go-review.googlesource.com/3073
Reviewed-by: Robert Griesemer <gri@golang.org>
src/html/template/doc.go

index d422ada37a78350ecfcfa23714c5dbed07e78956..1827403aa38a167c72e6e70433abf520e9f9f51f 100644 (file)
@@ -151,7 +151,7 @@ The template
 
 can be invoked with
 
-  tmpl.Execute(out, HTML(`<b>World</b>`))
+  tmpl.Execute(out, template.HTML(`<b>World</b>`))
 
 to produce