From 0b2328476c9e0ea218fb880fb372dccaa5ab6736 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 1 Jun 2019 23:24:25 +0300 Subject: [PATCH] typo fixes in ExampleSet --- set_example_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/set_example_test.go b/set_example_test.go index f9b1ab0..50845d3 100644 --- a/set_example_test.go +++ b/set_example_test.go @@ -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())