1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:24:40 -07:00

docs/articles/wiki: minor fixes

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5900046
This commit is contained in:
Rob Pike 2012-03-24 10:14:25 +11:00
parent c5f695e863
commit 73b5eb38c1

View File

@ -36,7 +36,7 @@ Install Go (see the <a href="/doc/install">Installation Instructions</a>).
</p>
<p>
Make a new directory for this tutorial and cd to it:
Make a new directory for this tutorial inside your <code>GOPATH</code> and cd to it:
</p>
<pre>
@ -551,8 +551,8 @@ to the user.
<p>
There is an inefficiency in this code: <code>renderTemplate</code> calls
<code>ParseFile</code> every time a page is rendered.
A better approach would be to call <code>ParseFile</code> once for each
<code>ParseFiles</code> every time a page is rendered.
A better approach would be to call <code>ParseFiles</code> once for each
template at program initialization, and store the resultant
<code>*Template</code> values in a data structure for later use.
</p>