]> Cypherpunks repositories - gostls13.git/commitdiff
expvar: document that the Var interface's String method should return a valid JSON...
authorDavid Symonds <dsymonds@golang.org>
Tue, 5 Apr 2016 05:19:27 +0000 (15:19 +1000)
committerDavid Symonds <dsymonds@golang.org>
Tue, 5 Apr 2016 05:50:56 +0000 (05:50 +0000)
Change-Id: If4e740f3dbef4053355542eebdd899b3099d872c
Reviewed-on: https://go-review.googlesource.com/21525
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/expvar/expvar.go

index d675a0230cdbf272370cb36dc23287d212eb8a53..1ec85006b4de92cf82096098fb236e68d0595988 100644 (file)
@@ -38,6 +38,7 @@ import (
 
 // Var is an abstract type for all exported variables.
 type Var interface {
+       // String returns a valid JSON value for the variable.
        String() string
 }