summaryrefslogtreecommitdiff
path: root/doc/progs
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-01-12 07:55:23 -0800
committerShenghou Ma <minux.ma@gmail.com>2012-01-12 07:55:23 -0800
commit1a3f083bd9ff496f00372306b1fdc806d40e1077 (patch)
treee81dbbbb70beb92ee50f2ebb36745cbeb449d0b1 /doc/progs
parent96d4e909cc05a6d7cacd75e041cc130263682828 (diff)
downloadgo-1a3f083bd9ff496f00372306b1fdc806d40e1077.tar.gz
doc: trivial comment typo fix
R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5529080 Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'doc/progs')
-rw-r--r--doc/progs/defer.go4
-rw-r--r--doc/progs/defer2.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/progs/defer.go b/doc/progs/defer.go
index 098cdf26b..2e11020ab 100644
--- a/doc/progs/defer.go
+++ b/doc/progs/defer.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// This file contains the code snippets included in "Defer, Panic, an Recover."
+// This file contains the code snippets included in "Defer, Panic, and Recover."
package main
@@ -36,7 +36,7 @@ func c() (i int) {
// STOP OMIT
-// Intial version.
+// Initial version.
func CopyFile(dstName, srcName string) (written int64, err error) {
src, err := os.Open(srcName)
if err != nil {
diff --git a/doc/progs/defer2.go b/doc/progs/defer2.go
index 341a1410f..cad66b070 100644
--- a/doc/progs/defer2.go
+++ b/doc/progs/defer2.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// This file contains the code snippets included in "Defer, Panic, an Recover."
+// This file contains the code snippets included in "Defer, Panic, and Recover."
package main