Skip to content

Commit

Permalink
exporter/metric/stdout: fix incorrect code format comments for Instal…
Browse files Browse the repository at this point in the history
…lNewPipeline
  • Loading branch information
wingyplus committed Feb 15, 2020
1 parent f99337f commit 4fe1871
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions exporter/metric/stdout/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +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()
//
// pipeline, err := stdout.InstallNewPipeline(stdout.Config{...})
// if err != nil {
// ...
// }
// defer pipeline.Stop()
//
// ... Done
func InstallNewPipeline(config Config) (*push.Controller, error) {
controller, err := NewExportPipeline(config)
Expand Down

0 comments on commit 4fe1871

Please sign in to comment.