Skip to content

Commit ba0b7dc

Browse files
Fixed typos
1 parent b2763f6 commit ba0b7dc

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎chapter7/patterns/pool/main/main.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// This example is provided with help by Gabriel Aszalos.
44

5-
// This sample program demostrates how to use the pool package
5+
// This sample program demonstrates how to use the pool package
66
// to share a simulated set of database connections.
77
package main
88

@@ -67,8 +67,6 @@ func main() {
6767
performQueries(q, p)
6868
wg.Done()
6969
}(query)
70-
71-
time.Sleep(time.Duration(rand.Intn(500)) * time.Millisecond)
7270
}
7371

7472
// Wait for the goroutines to finish.

‎chapter7/patterns/pool/pool.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Pool struct {
2121
closed bool
2222
}
2323

24-
// ErrPoolClosed is returned when an acquier returns on a
24+
// ErrPoolClosed is returned when an Acquire returns on a
2525
// closed pool.
2626
var ErrPoolClosed = errors.New("Pool has been closed.")
2727

0 commit comments

Comments
 (0)