Skip to content

Commit

Permalink
πŸ“š Docs: fix readme (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuwasegu authored Aug 16, 2023
1 parent 4b8189f commit 4a8fc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let vars = Vars { id: 1 };
let data = client.query_with_vars::<Data, Vars>(query, vars).await.unwrap();

println!("Id: {}, Name: {}", data.user.id, data.user.name);
println!("Id: {}, Name: {}", data.unwrap().user.id, data.unwrap().user.name);

Ok(())
}
Expand Down Expand Up @@ -127,4 +127,4 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

Ok(())
}
```
```

0 comments on commit 4a8fc19

Please sign in to comment.