Skip to content

Commit

Permalink
Fix example names
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Mar 4, 2022
1 parent 909824c commit 38456cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// This example increases a counter for each visit concurrently, using a
// SemGroup to block until all the visitors have finished. It only runs 2 tasks
// at any time.
func ExampleSemGroup() {
func ExampleGroup_parallel() {
const maxWorkers = 2
s := semgroup.NewGroup(context.Background(), 2)

Expand Down Expand Up @@ -45,7 +45,7 @@ func ExampleSemGroup() {
// Counter: 38
}

func ExampleSemGroup_with_errors() {
func ExampleGroup_withErrors() {
const maxWorkers = 2
s := semgroup.NewGroup(context.Background(), 2)

Expand Down

0 comments on commit 38456cf

Please sign in to comment.