diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-11-26 17:56:19 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-26 17:56:19 -0600 |
| commit | bb6236cd749dc5e708d6846c9b2c004766627851 (patch) | |
| tree | 91b8b5047b7b19a969896a00057916ac68a0c7db /src/librustdoc | |
| parent | 0b3d4a1fa45c2926fe133a17f42a40b75eafd885 (diff) | |
| parent | 5ea922aec4a66458728fbe74a6e8096ab76f9aec (diff) | |
| download | rust-bb6236cd749dc5e708d6846c9b2c004766627851.tar.gz rust-bb6236cd749dc5e708d6846c9b2c004766627851.zip | |
Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPC
Various tweaks to diagnostic output
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/passes/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/passes/mod.rs b/src/librustdoc/passes/mod.rs index f6560218a78..0a95d4209ac 100644 --- a/src/librustdoc/passes/mod.rs +++ b/src/librustdoc/passes/mod.rs @@ -344,7 +344,7 @@ pub fn look_for_tests<'tcx>( lint::builtin::MISSING_DOC_CODE_EXAMPLES, hir_id, sp, - "Missing code example in this documentation"); + "missing code example in this documentation"); diag.emit(); } else if check_missing_code == false && tests.found_tests > 0 && @@ -353,7 +353,7 @@ pub fn look_for_tests<'tcx>( lint::builtin::PRIVATE_DOC_TESTS, hir_id, span_of_attrs(&item.attrs).unwrap_or(item.source.span()), - "Documentation test in private item"); + "documentation test in private item"); diag.emit(); } } @@ -367,7 +367,7 @@ crate fn span_of_attrs(attrs: &clean::Attributes) -> Option<Span> { if start == DUMMY_SP { return None; } - let end = attrs.doc_strings.last().expect("No doc strings provided").span(); + let end = attrs.doc_strings.last().expect("no doc strings provided").span(); Some(start.to(end)) } |
