You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lo...@apache.org on 2022/11/05 16:55:52 UTC

[beam] 06/12: fix example for stringSlice

This is an automated email from the ASF dual-hosted git repository.

lostluck pushed a commit to branch beam23893pipelinehint
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 17960eb4f8da3754d7d784229a7b4f7fbedd4b91
Author: lostluck <13...@users.noreply.github.com>
AuthorDate: Fri Nov 4 15:29:39 2022 -0700

    fix example for stringSlice
---
 sdks/go/pkg/beam/options/jobopts/stringSlice.go | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sdks/go/pkg/beam/options/jobopts/stringSlice.go b/sdks/go/pkg/beam/options/jobopts/stringSlice.go
index f6e7565662d..fe390305c72 100644
--- a/sdks/go/pkg/beam/options/jobopts/stringSlice.go
+++ b/sdks/go/pkg/beam/options/jobopts/stringSlice.go
@@ -24,10 +24,12 @@ import (
 // of the flag.
 //
 // Example:
-//    var myFlags stringSlice
-//    flag.Var(&myFlags, "my_flag", "A list of flags")
+//
+//	var myFlags stringSlice
+//	flag.Var(&myFlags, "my_flag", "A list of flags")
+//	$cmd -my_flag foo -my_flag bar
+//
 // With the example above, the slice can be set to contain ["foo", "bar"]:
-//    cmd -my_flag foo -my_flag bar
 type stringSlice []string
 
 // String implements the String method of flag.Value. This outputs the value