Skip to content

Commit f5c90a5

Browse files
authored
docs: fix typo in pool docs (#3530)
1 parent 65bc3d4 commit f5c90a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/apis/pool.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const result = await pool.query('SELECT $1::text as name', ['brianc'])
9191
console.log(result.rows[0].name) // brianc
9292
```
9393

94-
Notice in the example above there is no need to check out or release a client. The pool is doing the acquiring and releasing internally. I find `pool.query` to be a handy shortcut many situations and use it exclusively unless I need a transaction.
94+
Notice in the example above there is no need to check out or release a client. The pool is doing the acquiring and releasing internally. I find `pool.query` to be a handy shortcut in many situations and I use it exclusively unless I need a transaction.
9595

9696
<Alert>
9797
<div>
@@ -112,7 +112,7 @@ Acquires a client from the pool.
112112

113113
- If there are idle clients in the pool one will be returned to the callback on `process.nextTick`.
114114
- If the pool is not full but all current clients are checked out a new client will be created & returned to this callback.
115-
- If the pool is 'full' and all clients are currently checked out will wait in a FIFO queue until a client becomes available by it being released back to the pool.
115+
- If the pool is 'full' and all clients are currently checked out, requests will wait in a FIFO queue until a client becomes available by being released back to the pool.
116116

117117
```js
118118
import { Pool } from 'pg'

0 commit comments

Comments
 (0)