From 73b5eb38c1b15dc9bf8d35c285d0c8019ec33b53 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sat, 24 Mar 2012 10:14:25 +1100 Subject: [PATCH] docs/articles/wiki: minor fixes R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5900046 --- doc/articles/wiki/wiki.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/articles/wiki/wiki.html b/doc/articles/wiki/wiki.html index 10e1e4fe492..ef5d902c6cb 100644 --- a/doc/articles/wiki/wiki.html +++ b/doc/articles/wiki/wiki.html @@ -36,7 +36,7 @@ Install Go (see the Installation Instructions).

-Make a new directory for this tutorial and cd to it: +Make a new directory for this tutorial inside your GOPATH and cd to it:

@@ -551,8 +551,8 @@ to the user.
 
 

There is an inefficiency in this code: renderTemplate calls -ParseFile every time a page is rendered. -A better approach would be to call ParseFile once for each +ParseFiles every time a page is rendered. +A better approach would be to call ParseFiles once for each template at program initialization, and store the resultant *Template values in a data structure for later use.