diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-11-24 18:42:22 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-11-24 18:42:22 -0800 |
| commit | e5816a75cc9951218e6ec06f64a5f07575c36770 (patch) | |
| tree | 691085d41eb30974c6ac789276b29edb00648012 /src/librustdoc/passes | |
| parent | f11759d38c70d3df67135f88a682701c1cf9762a (diff) | |
| download | rust-e5816a75cc9951218e6ec06f64a5f07575c36770.tar.gz rust-e5816a75cc9951218e6ec06f64a5f07575c36770.zip | |
Fix some rustdoc error capitalization
Diffstat (limited to 'src/librustdoc/passes')
| -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)) } |
