From d983649822b32bb6c11fb3ef9891f66258a6e5c9 Mon Sep 17 00:00:00 2001 From: spease Date: Mon, 18 Jun 2018 09:34:33 -0700 Subject: [PATCH] Explicitly mention doc comments in flatten error (#118) --- structopt-derive/src/attrs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs index aed307af..a2d562b0 100644 --- a/structopt-derive/src/attrs.rs +++ b/structopt-derive/src/attrs.rs @@ -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(_) => {