Skip to content

Commit

Permalink
Update README.md (#2770)
Browse files Browse the repository at this point in the history
* Update README.md

Quick helper on the async_std quickstart

* Move comment regard. `attributes` into code example

* doc(README): adjust wording of a comment

---------

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
  • Loading branch information
snspinn and abonander committed Oct 6, 2023
1 parent 846dcfe commit 7e9592c
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 @@ -234,7 +234,7 @@ use sqlx::postgres::PgPoolOptions;
// use sqlx::mysql::MySqlPoolOptions;
// etc.

#[async_std::main]
#[async_std::main] // Requires the `attributes` feature of `async-std`
// or #[tokio::main]
// or #[actix_web::main]
async fn main() -> Result<(), sqlx::Error> {
Expand All @@ -257,6 +257,7 @@ async fn main() -> Result<(), sqlx::Error> {
}
```


### Connecting

A single connection can be established using any of the database connection types and calling `connect()`.
Expand Down

0 comments on commit 7e9592c

Please sign in to comment.