diff options
Diffstat (limited to 'crates/ide/src/hover.rs')
-rw-r--r-- | crates/ide/src/hover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 7b9336d38..4e1ab534b 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -508,7 +508,7 @@ fn hover_for_keyword( | |||
508 | documentation: bool, | 508 | documentation: bool, |
509 | token: &SyntaxToken, | 509 | token: &SyntaxToken, |
510 | ) -> Option<RangeInfo<HoverResult>> { | 510 | ) -> Option<RangeInfo<HoverResult>> { |
511 | if !token.kind().is_keyword() || documentation { | 511 | if !token.kind().is_keyword() || !documentation { |
512 | return None; | 512 | return None; |
513 | } | 513 | } |
514 | let famous_defs = FamousDefs(sema, sema.scope(&token.parent()?).krate()); | 514 | let famous_defs = FamousDefs(sema, sema.scope(&token.parent()?).krate()); |