Skip to content

Commit

Permalink
Update rust docs (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnbln authored Aug 18, 2023
1 parent 1762914 commit ca08cfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/examples/unofficial/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

```toml
[dependencies]
nekosbest = "0.17"
nekosbest = "0.19"
```

## Example
Expand All @@ -16,7 +16,7 @@ nekosbest = "0.17"
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let img_url: String = nekosbest::get(nekosbest::Category::Neko).await?.url;
println!("{}", img_url);
println!("{img_url}");
Ok(())
}
```
Expand All @@ -27,7 +27,7 @@ Or with an amount (amount is capped at 20 by the server):
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let images = nekosbest::get_amount(nekosbest::Category::Neko, 20).await?.0;
println!("{:?}", images);
println!("{images:?}");
Ok(())
}
```
Expand Down

0 comments on commit ca08cfe

Please sign in to comment.