From: Rob Pike Date: Mon, 22 Aug 2011 12:43:49 +0000 (+1000) Subject: gob: explain that Debug isn't useful unless it's compiled in. X-Git-Tag: weekly.2011-09-01~132 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=93134e06ba7bd3629a56d11f3bf05f8259d9be76;p=gostls13.git gob: explain that Debug isn't useful unless it's compiled in. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4930044 --- diff --git a/src/pkg/gob/debug.go b/src/pkg/gob/debug.go index ce8a6ff5e5..16c2194eba 100644 --- a/src/pkg/gob/debug.go +++ b/src/pkg/gob/debug.go @@ -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 {