From 93134e06ba7bd3629a56d11f3bf05f8259d9be76 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 22 Aug 2011 22:43:49 +1000 Subject: [PATCH] gob: explain that Debug isn't useful unless it's compiled in. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4930044 --- src/pkg/gob/debug.go | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.50.0