Skip to content

Commit

Permalink
Explicitly mention doc comments in flatten error (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
spease authored and TeXitoi committed Jun 18, 2018
1 parent 18192d8 commit d983649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structopt-derive/src/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl Attrs {
panic!("parse attribute is not allowed for flattened entry");
}
if !res.methods.is_empty() {
panic!("methods are not allowed for flattened entry");
panic!("methods and doc comments are not allowed for flattened entry");
}
}
Kind::Subcommand(_) => {
Expand Down

0 comments on commit d983649

Please sign in to comment.