Skip to content

Commit bba0bc4

Browse files
authored
Fix typo, assign result to variable (#115)
1 parent c9c6632 commit bba0bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ module.exports = sql
3333
// other.js
3434
const sql = require('./db.js')
3535

36-
await sql`
36+
const users = await sql`
3737
select name, age from users
3838
`
39-
// > [{ name: 'Murray', age: 68 }, { name: 'Walter', age 78 }]
39+
// users: [{ name: 'Murray', age: 68 }, { name: 'Walter', age: 78 }]
4040
```
4141

4242
## Connection options `postgres([url], [options])`

0 commit comments

Comments
 (0)