Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode authored Jan 16, 2020
1 parent 544e497 commit 36ba695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ let countries = sqlx::query!(
)
.fetch(&mut conn) // -> impl Stream<Item = { country: String, count: i64 }>
.map_ok(|rec| (rec.country, rec.count))
.collect::<HashMap<_>>() // -> HashMap<String, i64>
.try_collect::<HashMap<_>>() // -> HashMap<String, i64>
.await?;
```

Expand Down

0 comments on commit 36ba695

Please sign in to comment.