Rollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez

doc: fix and shorten comment
This commit is contained in:
Steve Klabnik 2016-07-06 19:13:08 -04:00 committed by GitHub
commit 26821a6f88

View File

@ -2880,8 +2880,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::<Vec<_>>();