aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/asn1
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-03-23 15:28:51 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2015-03-24 00:09:30 +0000
commitf1878c0d4670a8ebde9579a3eebb589dfca26716 (patch)
tree368d8ba8234867c98b4065507c2df610660c2b32 /src/encoding/asn1
parent717cb74907f3597850398a48a52f1a19a3beb447 (diff)
downloadgo-f1878c0d4670a8ebde9579a3eebb589dfca26716.tar.gz
go-f1878c0d4670a8ebde9579a3eebb589dfca26716.zip
debug/dwarf, encoding/asn1, go/ast: fix old comments
The debug/dwarf and encoding/asn1 examples were added in 2009, a few months before Go added implicit semicolons, and never updated. The go/ast node types have always been named just "Expr", "Stmt", and "Decl", so the comments about "ExprNode", "StmtNode", and "DeclNode" were likely just mistaken because the interface tag methods are "exprNode", "stmtNode", and "declNode", respectively. Change-Id: I9d138cc3a16c1a51453da1406914d7b320bf6270 Reviewed-on: https://go-review.googlesource.com/7980 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding/asn1')
-rw-r--r--src/encoding/asn1/marshal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/asn1/marshal.go b/src/encoding/asn1/marshal.go
index b2f104b4cb..bf92c04c9f 100644
--- a/src/encoding/asn1/marshal.go
+++ b/src/encoding/asn1/marshal.go
@@ -18,7 +18,7 @@ import (
// A forkableWriter is an in-memory buffer that can be
// 'forked' to create new forkableWriters that bracket the
// original. After
-// pre, post := w.fork();
+// pre, post := w.fork()
// the overall sequence of bytes represented is logically w+pre+post.
type forkableWriter struct {
*bytes.Buffer