Check if the value of description is_doc false before update it

This commit is contained in:
TheAwiteb 2023-09-14 12:09:50 +03:00
parent de80b57d9a
commit c0a6e00520
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -99,7 +99,7 @@ impl CommandAttrs {
d.strip_prefix(' ').unwrap_or(&d),
attr.sp,
);
if is_doc {
if is_doc && matches!(this.description, Some((_, false, _))) {
if let Some((_, is_doc, _)) = &mut this.description {
*is_doc = true;
}