Skip to content

Commit e8e0d34

Browse files
committed
Update example to use cargo_bin_cmd macro
1 parent 0cb383e commit e8e0d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
Here's a trivial example:
1616

1717
```rust,no_run
18-
use assert_cmd::Command;
18+
use assert_cmd::cargo::cargo_bin_cmd;
1919
20-
let mut cmd = Command::cargo_bin("bin_fixture").unwrap();
20+
let mut cmd = cargo_bin_cmd!("bin_fixture").unwrap();
2121
cmd.assert().success();
2222
```
2323

0 commit comments

Comments
 (0)