Skip to content

Commit

Permalink
📝 Fix a small type error in doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomocavalieri committed Aug 10, 2024
1 parent c98425b commit 9baef03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ And run `gleam run -m squirrel`. Just like magic you'll now have a type-safe
function `find_squirrel` you can use just as you'd expect:

```gleam
import gleam/pgo
import squirrels/sql
pub fn main() {
let db = todo as "the pgo connection"
// And it just works as you'd expect:
let assert Ok(#(_rows_count, rows)) = sql.find_squirrel("sandy")
let assert Ok(pgo.Returned(_rows_count, rows)) = sql.find_squirrel("sandy")
let assert [FindSquirrelRow(name: "sandy", owned_acorns: 11_111)] = rows
}
```
Expand Down

0 comments on commit 9baef03

Please sign in to comment.