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_assists/src/remove_dbg.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_assists/src/remove_dbg.rs') diff --git a/crates/ra_assists/src/remove_dbg.rs b/crates/ra_assists/src/remove_dbg.rs index db260c6ca..2bed270a1 100644 --- a/crates/ra_assists/src/remove_dbg.rs +++ b/crates/ra_assists/src/remove_dbg.rs @@ -17,9 +17,9 @@ pub(crate) fn remove_dbg(mut ctx: AssistCtx) -> Option let macro_range = macro_call.syntax().range(); - // If the cursor is inside the macrocall, we'll try to maintain - // the cursor position by subtracting the length of dbg!( from the start - // of the filerange, otherwise we'll default to using the start of the macrocall + // If the cursor is inside the macro call, we'll try to maintain the cursor + // position by subtracting the length of dbg!( from the start of the file + // range, otherwise we'll default to using the start of the macro call let cursor_pos = { let file_range = ctx.frange.range; @@ -61,7 +61,7 @@ fn is_valid_macrocall(macro_call: &ast::MacroCall, macro_name: &str) -> Option