about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-11-25 14:24:53 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-11-25 14:24:53 +0100
commitc1ea1fd2b03b16bfeab01cbcd7bae976ab596923 (patch)
tree561bdf8984a6550bd49285b84f1ba16685d32ee8 /src/librustdoc
parent433f2b030b1c672bd19f38f6247d8aadce438189 (diff)
downloadrust-c1ea1fd2b03b16bfeab01cbcd7bae976ab596923.tar.gz
rust-c1ea1fd2b03b16bfeab01cbcd7bae976ab596923.zip
Update error messages
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/passes/collect_intra_doc_links.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs
index 811596505c1..783168d7bd6 100644
--- a/src/librustdoc/passes/collect_intra_doc_links.rs
+++ b/src/librustdoc/passes/collect_intra_doc_links.rs
@@ -340,7 +340,7 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
             let parts = link.split('#').collect::<Vec<_>>();
             let (link, extra_fragment) = if parts.len() > 2 {
                 build_diagnostic(cx, &item, &link, &dox, link_range,
-                                 "has an anchor issue...",
+                                 "has an issue with the link anchor.",
                                  "only one `#` is allowed in a link",
                                  None);
                 continue;
@@ -625,7 +625,7 @@ fn resolution_failure(
     link_range: Option<Range<usize>>,
 ) {
     build_diagnostic(cx, item, path_str, dox, link_range,
-         "cannot be resolved, ignoring it...",
+         "cannot be resolved, ignoring it.",
          "cannot be resolved, ignoring",
          Some("to escape `[` and `]` characters, just add '\\' before them like `\\[` or `\\]`"));
 }
@@ -639,7 +639,7 @@ fn anchor_failure(
     msg: &str,
 ) {
     build_diagnostic(cx, item, path_str, dox, link_range,
-         "has an anchor issue...",
+         "has an issue with the link anchor.",
          msg,
          None);
 }