mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
Fix the example code in README.
This commit is contained in:
parent
1bdc3e9057
commit
086dfec002
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ The `fetch` query finalizer returns a stream-like type that iterates through the
|
|||
```rust
|
||||
let mut cursor = sqlx::query("SELECT * FROM users WHERE email = ?")
|
||||
.bind(email)
|
||||
.fetch(&mut conn).await?;
|
||||
.fetch(&mut conn);
|
||||
|
||||
while let Some(row) = cursor.next().await? {
|
||||
// map the row into a user-defined domain type
|
||||
|
|
Loading…
Reference in a new issue