Commit 93134e06 authored by Rob Pike's avatar Rob Pike

gob: explain that Debug isn't useful unless it's compiled in.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4930044
parent d9c9c487
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment