Skip to content

Commit

Permalink
correct example
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXitoi committed Aug 5, 2021
1 parent 171bc1d commit 4b09bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/true_or_false.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct Opt {
bar: bool,

// `bool` can be positional only with explicit `parse(...)` annotation
#[structopt(long, parse(try_from_str))]
#[structopt(parse(try_from_str))]
boom: bool,
}

Expand Down

0 comments on commit 4b09bd7

Please sign in to comment.