mirror of
https://github.com/golang/go
synced 2024-11-22 03:34:40 -07:00
doc: fix wiki content error
Fixes #5898. R=golang-dev, r CC=golang-dev https://golang.org/cl/11556043
This commit is contained in:
parent
21b9d14738
commit
01cc462bfc
@ -128,11 +128,10 @@ In addition to saving pages, we will want to load pages, too:
|
||||
{{code "doc/articles/wiki/part1-noerror.go" `/^func loadPage/` `/^}/`}}
|
||||
|
||||
<p>
|
||||
The function <code>loadPage</code> constructs the file name from
|
||||
the title parameter, reads the file's contents into a new
|
||||
variable <code>body</code>, and returns two values: a pointer to a
|
||||
<code>Page</code> literal constructed with the proper title and body
|
||||
values and <code>nil</code> for the error value.
|
||||
The function <code>loadPage</code> constructs the file name from the title
|
||||
parameter, reads the file's contents into a new variable <code>body</code>, and
|
||||
returns a pointer to a <code>Page</code> literal constructed with the proper
|
||||
title and body values.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user