Skip to content

Commit 7474a42

Browse files
author
Jonas Schievink
committed
Remove incorrect docs
1 parent baab72e commit 7474a42

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

crates/hir_def/src/attr.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,13 @@ pub struct AttrQuery<'a> {
171171
}
172172

173173
impl<'a> AttrQuery<'a> {
174-
/// For an attribute like `#[attr(value)]`, returns the `(value)` subtree.
175-
///
176-
/// If the attribute does not have a token tree argument, returns `None`.
177174
pub fn tt_values(self) -> impl Iterator<Item = &'a Subtree> {
178175
self.attrs().filter_map(|attr| match attr.input.as_ref()? {
179176
AttrInput::TokenTree(it) => Some(it),
180177
_ => None,
181178
})
182179
}
183180

184-
/// For an attribute like `#[key = "value"]`, returns `"value"`.
185-
///
186-
/// Returns `None` if the attribute does not have `key = "value"` form.
187181
pub fn string_value(self) -> Option<&'a SmolStr> {
188182
self.attrs().find_map(|attr| match attr.input.as_ref()? {
189183
AttrInput::Literal(it) => Some(it),

0 commit comments

Comments
 (0)