From: Rob Pike Date: Fri, 23 Mar 2012 23:14:25 +0000 (+1100) Subject: docs/articles/wiki: minor fixes X-Git-Tag: weekly~53 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73b5eb38c1b15dc9bf8d35c285d0c8019ec33b53;p=gostls13.git docs/articles/wiki: minor fixes R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5900046 --- diff --git a/doc/articles/wiki/wiki.html b/doc/articles/wiki/wiki.html index 10e1e4fe49..ef5d902c6c 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.