From 4fd361343449bcdf7af4642851dc5dbf772f1a68 Mon Sep 17 00:00:00 2001 From: Pascal Hertleif Date: Mon, 11 Feb 2019 17:18:27 +0100 Subject: Fix some typos --- crates/ra_ide_api/src/goto_definition.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_ide_api/src/goto_definition.rs') diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index 413720960..96ed8c8e9 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs @@ -93,10 +93,10 @@ pub(crate) fn reference_definition( return Exact(nav); } Some(Resolution::GenericParam(..)) => { - // TODO go to the generic param def + // TODO: go to the generic param def } Some(Resolution::SelfType(_impl_block)) => { - // TODO go to the implemented type + // TODO: go to the implemented type } None => {} } @@ -133,8 +133,8 @@ mod tests { use crate::mock_analysis::analysis_and_position; - fn check_goto(fixuture: &str, expected: &str) { - let (analysis, pos) = analysis_and_position(fixuture); + fn check_goto(fixture: &str, expected: &str) { + let (analysis, pos) = analysis_and_position(fixture); let mut navs = analysis.goto_definition(pos).unwrap().unwrap().info; assert_eq!(navs.len(), 1); -- cgit v1.2.3