From f1878c0d4670a8ebde9579a3eebb589dfca26716 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 23 Mar 2015 15:28:51 -0700 Subject: 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 --- src/debug/dwarf/entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug') diff --git a/src/debug/dwarf/entry.go b/src/debug/dwarf/entry.go index d459f30519..2742ae0eab 100644 --- a/src/debug/dwarf/entry.go +++ b/src/debug/dwarf/entry.go @@ -112,7 +112,7 @@ type Field struct { // // A common idiom is to merge the check for nil return with // the check that the value has the expected dynamic type, as in: -// v, ok := e.Val(AttrSibling).(int64); +// v, ok := e.Val(AttrSibling).(int64) // func (e *Entry) Val(a Attr) interface{} { for _, f := range e.Field { -- cgit v1.3-5-g9baa