From c7c2eb8b0885198f9b1a5e44ca49c2289128d27d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 14 Jun 2021 18:01:38 +0200 Subject: typo --- crates/ide/src/hover.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide') 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( 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()); -- cgit v1.2.3