Commit eb39bd65 authored by Boris Mühmer's avatar Boris Mühmer
Browse files

fixed some typos

parent d4a29972
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ func TestTicketsComplex(t *testing.T) {
	t.Logf("number of tickets: %d", maxTickets)
	t.Logf("numWorkers: %d", numWorkers)

	// gernerate some work
	// generate some tickets
	totalProcessDuration := time.Duration(0)
	ticketStream := make(chan *Ticket, numBuffered)
	go func(numTickets int) {
@@ -80,7 +80,7 @@ func TestTicketsComplex(t *testing.T) {
		}
	}(maxTickets)

	// dispatch work to distinct workers
	// dispatch work to distinct goroutines
	workerResultStreamArray := make([]chan WorkerResult, numWorkers)
	for workerIndex := 0; workerIndex < numWorkers; workerIndex++ {
		workerResultStreamArray[workerIndex] = func(id int, ticketStream chan *Ticket) chan WorkerResult {
@@ -105,7 +105,7 @@ func TestTicketsComplex(t *testing.T) {
		}(workerIndex, ticketStream)
	}

	// collect results from all workers
	// collect results from all goroutines
	workerResultStream := make(chan WorkerResult)
	go func() {
		defer close(workerResultStream)