Explicitly mention doc comments in flatten error (#118)

This commit is contained in:
spease 2018-06-18 09:34:33 -07:00 committed by Guillaume P
parent 18192d8e50
commit d983649822

View file

@ -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(_) => {