mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
refactor(derive): Clarify leading-space removal
This commit is contained in:
parent
d1db3d2f0e
commit
6ace0410c1
1 changed files with 1 additions and 3 deletions
|
@ -33,9 +33,7 @@ pub fn process_doc_comment(
|
|||
|
||||
// remove one leading space no matter what
|
||||
for line in lines.iter_mut() {
|
||||
if line.starts_with(' ') {
|
||||
*line = &line[1..];
|
||||
}
|
||||
*line = line.strip_prefix(' ').unwrap_or(line);
|
||||
}
|
||||
|
||||
let short_name = format_ident!("{}", name);
|
||||
|
|
Loading…
Reference in a new issue