Skip to content

Commit

Permalink
Fix grammar that's wrong-by-template in examples (#81)
Browse files Browse the repository at this point in the history
Small fix to grammar on the comment around the subscribe channel in many
of the example tests.
  • Loading branch information
brandur authored Nov 29, 2023
1 parent a8f0ce7 commit ae36deb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example_batch_insert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func Example_batchInsert() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down
2 changes: 1 addition & 1 deletion example_cron_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Example_cronJob() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down
2 changes: 1 addition & 1 deletion example_custom_insert_opts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func Example_customInsertOpts() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down
2 changes: 1 addition & 1 deletion example_insert_and_work_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Example_insertAndWork() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down
2 changes: 1 addition & 1 deletion example_periodic_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func Example_periodicJob() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down
2 changes: 1 addition & 1 deletion example_unique_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func Example_uniqueJob() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down
2 changes: 1 addition & 1 deletion example_work_func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Example_workFunc() {
panic(err)
}

// Out of example scope, but used to make wait until a job is worked.
// Out of example scope, but used to wait until a job is worked.
subscribeChan, subscribeCancel := riverClient.Subscribe(river.EventKindJobCompleted)
defer subscribeCancel()

Expand Down

0 comments on commit ae36deb

Please sign in to comment.