From 5efc780e146f51a87b1137adb116c825d87e07a3 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sun, 3 Jul 2016 22:03:45 +0200 Subject: [PATCH] doc: fix and shorten comment --- src/librustc_resolve/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index ed400af66855a..18f2dbb23b2b1 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -2892,8 +2892,7 @@ impl<'a> Resolver<'a> { if !msg.is_empty() { msg = format!(". Did you mean {}?", msg); } else { - // we check if this a module and if so, we display a help - // message + // we display a help message if this is a module let name_path = path.segments.iter() .map(|seg| seg.identifier.name) .collect::>();