Skip to content

Commit

Permalink
Fix instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultamartin committed May 20, 2020
1 parent 4c44eb1 commit 150855f
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 @@ -7,8 +7,8 @@ Here is a basic example to specify your Okapi key, and to retrieve the status fr
#[tokio::main]
async fn main() {
let client = laposte::Client::new(String::from("your_api_key"));
let res = client.get_tracking_info(String::from("the_tracking_number"));
let client = laposte::Client::new("your_api_key");
let res = client.get_tracking_info("the_tracking_number");
match res.await {
Ok(resp) => println!("Le colis n°{} est au statut {}", resp.shipment.id_ship, resp.shipment.event[0].label),
Err(_) => println!("Oh no")
Expand Down

0 comments on commit 150855f

Please sign in to comment.