Skip to content

Commit 7d33dea

Browse files
committed
Fix NewGroup example
1 parent a7357d2 commit 7d33dea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

group.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ type Group struct {
6262
// function as a "zero" struct causes panics. Multiple Options can be supplied to NewGroup
6363
// to modify its behaviour e.g.:
6464
//
65-
// group := parallel.NewGroup(WithSeparator("----\n"), OrderStderr(true))
65+
// group,_ := parallel.NewGroup(
66+
// parallel.WithStdoutSeparator("----\n"),
67+
// parallel.OrderStderr(true),
68+
// )
6669
//
6770
// Unless otherwise set the [Group] is returned with OrderRunners(true) and
6871
// StderrLast(false) which results in RunFuncs optimally writing to the Group output

0 commit comments

Comments
 (0)