1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:54:40 -07:00

debug/dwarf: address TODO in doc comment for New

Fixes #2844.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5675072
This commit is contained in:
Rob Pike 2012-02-17 12:47:56 +11:00
parent 91672686da
commit a15f59ef1d

View 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