From 3fc113c2dd4857ebfa5fb5516c8c4c6e9942c8ef Mon Sep 17 00:00:00 2001 From: Thanabodee Charoenpiriyakij Date: Sun, 16 Feb 2020 00:10:26 +0700 Subject: [PATCH] exporter/metric/stdout: fix incorrect code format comments for InstallNewPipeline --- exporter/metric/stdout/stdout.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/exporter/metric/stdout/stdout.go b/exporter/metric/stdout/stdout.go index 166d90fc7f6..ab6fc32c0fe 100644 --- a/exporter/metric/stdout/stdout.go +++ b/exporter/metric/stdout/stdout.go @@ -107,12 +107,13 @@ func NewRawExporter(config Config) (*Exporter, error) { // InstallNewPipeline instantiates a NewExportPipeline and registers it globally. // Typically called as: -// pipeline, err := stdout.InstallNewPipeline(stdout.Config{...}) -// if err != nil { -// ... -// } -// defer pipeline.Stop() -// ... Done +// +// pipeline, err := stdout.InstallNewPipeline(stdout.Config{...}) +// if err != nil { +// ... +// } +// defer pipeline.Stop() +// ... Done func InstallNewPipeline(config Config) (*push.Controller, error) { controller, err := NewExportPipeline(config) if err != nil {