Skip to content

Commit 89c69c6

Browse files
committed
docs: Correct examples for cargo_bin!
Fixes #249
1 parent ef752de commit 89c69c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/macros.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ macro_rules! crate_name {
4848
///
4949
/// use std::process::Command;
5050
///
51-
/// let mut cmd = Command::new(cargo_bin!())
52-
/// .unwrap();
51+
/// let cmd = Command::new(cargo_bin!())
5352
/// let output = cmd.unwrap();
5453
/// ```
5554
#[macro_export]
@@ -78,8 +77,7 @@ macro_rules! cargo_bin {
7877
///
7978
/// use std::process::Command;
8079
///
81-
/// let mut cmd = cargo_bin_cmd!()
82-
/// .unwrap();
80+
/// let cmd = cargo_bin_cmd!()
8381
/// let output = cmd.unwrap();
8482
/// ```
8583
#[macro_export]

0 commit comments

Comments
 (0)