mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Check if the value of description is_doc
false before update it
This commit is contained in:
parent
de80b57d9a
commit
c0a6e00520
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ impl CommandAttrs {
|
||||||
d.strip_prefix(' ').unwrap_or(&d),
|
d.strip_prefix(' ').unwrap_or(&d),
|
||||||
attr.sp,
|
attr.sp,
|
||||||
);
|
);
|
||||||
if is_doc {
|
if is_doc && matches!(this.description, Some((_, false, _))) {
|
||||||
if let Some((_, is_doc, _)) = &mut this.description {
|
if let Some((_, is_doc, _)) = &mut this.description {
|
||||||
*is_doc = true;
|
*is_doc = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue