Skip to content

Commit 2b3f71c

Browse files
missing try clause on db.scalar line of example
1 parent 3484825 commit 2b3f71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ for row in try db.prepare("SELECT id, email FROM users") {
9797
// id: Optional(3), email: Optional("[email protected]")
9898
}
9999

100-
db.scalar("SELECT count(*) FROM users") // 2
100+
try db.scalar("SELECT count(*) FROM users") // 2
101101
```
102102

103103
[Read the documentation][See Documentation] or explore more,

0 commit comments

Comments
 (0)