typo fixes in ExampleSet

This commit is contained in:
Aliaksandr Valialkin 2019-06-01 23:24:25 +03:00
parent ebce157dde
commit 0b2328476c

View File

@ -13,11 +13,8 @@ func ExampleSet() {
sc.Inc()
s.NewGauge(`set_gauge{foo="bar"}`, func() float64 { return 42 })
// Dump global metrics
var bb bytes.Buffer
// Dump metrics from s.
bb.Reset()
var bb bytes.Buffer
s.WritePrometheus(&bb)
fmt.Printf("set metrics:\n%s\n", bb.String())