aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-14 17:01:38 +0100
committerLukas Wirth <[email protected]>2021-06-14 17:01:38 +0100
commitc7c2eb8b0885198f9b1a5e44ca49c2289128d27d (patch)
tree52c10cf8c8e3f00f300e369a8af1cc63278e3c49
parent178b5ffba316164fba86b86a67e9402b226fbc48 (diff)
typo
-rw-r--r--crates/ide/src/hover.rs2
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());