Fix the example code in README.

This commit is contained in:
dyoshikawa 2020-05-29 01:48:08 +09:00 committed by Ryan Leckey
parent 1bdc3e9057
commit 086dfec002

View file

@ -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