Skip to content

Commit 26821a6

Browse files
authored
Rollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez
doc: fix and shorten comment
2 parents 1b7bebf + 5efc780 commit 26821a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_resolve/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2880,8 +2880,7 @@ impl<'a> Resolver<'a> {
28802880
if !msg.is_empty() {
28812881
msg = format!(". Did you mean {}?", msg);
28822882
} else {
2883-
// we check if this a module and if so, we display a help
2884-
// message
2883+
// we display a help message if this is a module
28852884
let name_path = path.segments.iter()
28862885
.map(|seg| seg.identifier.name)
28872886
.collect::<Vec<_>>();

0 commit comments

Comments
 (0)