mu-labels: fix comment
This commit is contained in:
@ -37,9 +37,9 @@ Mu::Labels::validate_label(const std::string &label)
|
|||||||
|
|
||||||
const auto cstr{label.c_str()};
|
const auto cstr{label.c_str()};
|
||||||
|
|
||||||
// labels must be at least two characters and not start with a
|
// labels must not start with '+' or '-'; this limitation is
|
||||||
// dash. these limitations are there to avoid confusion with
|
// there to avoid confusion with delta-labels / command-line
|
||||||
// command-line parameters.
|
// parameters.
|
||||||
if (cstr[0] == '-' || cstr[0] == '+')
|
if (cstr[0] == '-' || cstr[0] == '+')
|
||||||
return Err(Error{Error::Code::InvalidArgument,
|
return Err(Error{Error::Code::InvalidArgument,
|
||||||
"labels cannot start with '+' or '-' ({})", label});
|
"labels cannot start with '+' or '-' ({})", label});
|
||||||
|
|||||||
Reference in New Issue
Block a user