Skip to content

Commit

Permalink
Use 'unwrap' instead of 'expect' in testing guide.
Browse files Browse the repository at this point in the history
Resolves rwf2#1356.
  • Loading branch information
SergioBenitez committed Aug 16, 2020
1 parent 5232002 commit 02b79e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/guide/8-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ instance. Usage is straightforward:
```rust
# use rocket::local::blocking::Client;
# let rocket = rocket::ignite();
let client = Client::new(rocket).expect("valid rocket instance");
let client = Client::new(rocket).unwrap();
# let _ = client;
```

Expand Down

0 comments on commit 02b79e2

Please sign in to comment.