]> Cypherpunks repositories - gostls13.git/commitdiff
debug/dwarf: address TODO in doc comment for New
authorRob Pike <r@golang.org>
Fri, 17 Feb 2012 01:47:56 +0000 (12:47 +1100)
committerRob Pike <r@golang.org>
Fri, 17 Feb 2012 01:47:56 +0000 (12:47 +1100)
Fixes #2844.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5675072

src/pkg/debug/dwarf/open.go

index 9543297e189cd42a2bda67602df4cbd814914f05..37a518b6d376969e5371b88f72aad1779e4957f7 100644 (file)
@@ -31,8 +31,9 @@ type Data struct {
 }
 
 // New returns a new Data object initialized from the given parameters.
-// Clients should typically use [TODO(rsc): method to be named later] instead of calling
-// New directly.
+// Rather than calling this function directly, clients should typically use
+// the DWARF method of the File type of the appropriate package debug/elf,
+// debug/macho, or debug/pe.
 //
 // The []byte arguments are the data from the corresponding debug section
 // in the object file; for example, for an ELF object, abbrev is the contents of