Skip to content

Commit 7ad7065

Browse files
committed
Uncapitalize note messages
1 parent 5172745 commit 7ad7065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_resolve/resolve_imports.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
394394
directive.is_public &&
395395
!name_binding.is_public() => {
396396
let msg = format!("`{}` is private, and cannot be reexported", source);
397-
let note_msg = format!("Consider marking `{}` as `pub` in the imported module",
397+
let note_msg = format!("consider marking `{}` as `pub` in the imported module",
398398
source);
399399
struct_span_err!(self.resolver.session, directive.span, E0364, "{}", &msg)
400400
.span_note(directive.span, &note_msg)
@@ -414,7 +414,7 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
414414
} else {
415415
let msg = format!("`{}` is private, and cannot be reexported", source);
416416
let note_msg =
417-
format!("Consider declaring type or module `{}` with `pub`", source);
417+
format!("consider declaring type or module `{}` with `pub`", source);
418418
struct_span_err!(self.resolver.session, directive.span, E0365, "{}", &msg)
419419
.span_note(directive.span, &note_msg)
420420
.emit();

0 commit comments

Comments
 (0)