mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
tree-wide: fix rustdoc warnings, add some links
This commit is contained in:
parent
8a8431133e
commit
e3a67ccec6
7 changed files with 23 additions and 20 deletions
|
@ -197,12 +197,12 @@ pub enum AttrKind {
|
|||
}
|
||||
|
||||
impl AttrKind {
|
||||
/// Returns `true` if the attr_kind is [`Inner`].
|
||||
/// Returns `true` if the attr_kind is [`Inner`](Self::Inner).
|
||||
pub fn is_inner(&self) -> bool {
|
||||
matches!(self, Self::Inner)
|
||||
}
|
||||
|
||||
/// Returns `true` if the attr_kind is [`Outer`].
|
||||
/// Returns `true` if the attr_kind is [`Outer`](Self::Outer).
|
||||
pub fn is_outer(&self) -> bool {
|
||||
matches!(self, Self::Outer)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue