mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
More check that is a doc comment
This commit is contained in:
parent
9545075023
commit
31f53f58fc
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ fn is_command_attribute(a: &Attribute) -> bool {
|
|||
|
||||
pub(crate) fn is_doc_comment(a: &Attribute) -> bool {
|
||||
match a.path.get_ident() {
|
||||
Some(ident) => ident == "doc",
|
||||
Some(ident) => ident == "doc" && a.tokens.to_string().starts_with("= \""),
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue