]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/lib.rs
Rollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez
[rust.git] / src / librustc_resolve / lib.rs
index 66b0d663424aa829a95c673de86b76e27b63ae8e..9a3980688f3ad677090c3c9bae1e1c0071520dd7 100644 (file)
@@ -2880,8 +2880,7 @@ fn resolve_expr(&mut self, expr: &Expr, parent: Option<&Expr>) {
                                 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::<Vec<_>>();