Add comment for &version!()[..]

This commit is contained in:
mario 2016-11-05 11:52:23 +01:00 committed by Matthias Beyer
parent 0f22941cd0
commit ec2b8984bb

View file

@ -36,6 +36,10 @@ macro_rules! gen_mods_buildui {
/// &version!()[..], /// &version!()[..],
/// "counter")) /// "counter"))
/// ``` /// ```
/// As for the `&version!()[..]` part, it does not matter
/// which version the subcommand is getting here, as the
/// output of this script is a completion script, which
/// does not contain information about the version at all.
macro_rules! build_subcommand { macro_rules! build_subcommand {
($name:expr, $module:ident) => ( ($name:expr, $module:ident) => (
$module::build_ui(Runtime::get_default_cli_builder( $module::build_ui(Runtime::get_default_cli_builder(