Skip to content

Commit

Permalink
expvar: document that the Var interface's String method should return…
Browse files Browse the repository at this point in the history
… a valid JSON value.

Change-Id: If4e740f3dbef4053355542eebdd899b3099d872c
Reviewed-on: https://go-review.googlesource.com/21525
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
dsymonds committed Apr 5, 2016
1 parent 869e576 commit e8f01e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/expvar/expvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e8f01e5

Please sign in to comment.