diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 7b9336d388cf..4e1ab534b986 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs @@ -508,7 +508,7 @@ fn hover_for_keyword( documentation: bool, token: &SyntaxToken, ) -> Option> { - if !token.kind().is_keyword() || documentation { + if !token.kind().is_keyword() || !documentation { return None; } let famous_defs = FamousDefs(sema, sema.scope(&token.parent()?).krate());