mirror of
https://github.com/golang/go
synced 2024-11-22 00:24:41 -07:00
gob: explain that Debug isn't useful unless it's compiled in.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4930044
This commit is contained in:
parent
d9c9c48797
commit
93134e06ba
@ -154,6 +154,7 @@ func (deb *debugger) dump(format string, args ...interface{}) {
|
||||
}
|
||||
|
||||
// Debug prints a human-readable representation of the gob data read from r.
|
||||
// It is a no-op unless debugging was enabled when the package was built.
|
||||
func Debug(r io.Reader) {
|
||||
err := debug(r)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user