This commit is contained in:
TheAwiteb 2023-09-12 18:31:12 +03:00
parent 9eececeab2
commit de80b57d9a
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -77,7 +77,7 @@ impl Command {
pub(crate) fn deprecated_description_off_span(&self) -> Option<Span> {
self.description
.as_ref()
.filter(|(d, ..)| d == "off" && !self.description_is_enabled())
.filter(|(d, ..)| d == "off" && !self.contains_doc_comment())
.map(|&(.., span)| span)
}
}