about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRaymond Luo <ray.luo@nyu.edu>2022-06-23 19:02:30 -0400
committerRaymond Luo <ray.luo@nyu.edu>2022-06-23 19:02:30 -0400
commit5107123f9a3a2faaa71a673add58b34002a5122f (patch)
tree2692700af4b4d2f1f9198f71b2eb9ac07d69b33b
parent96ff2357701afe3a94d9273dd1ff8ba5235443de (diff)
downloadrust-5107123f9a3a2faaa71a673add58b34002a5122f.tar.gz
rust-5107123f9a3a2faaa71a673add58b34002a5122f.zip
clarify comment and add autolink test case
-rw-r--r--crates/ide/src/doc_links.rs2
-rw-r--r--crates/ide/src/hover/tests.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs
index 6932dd3ae22..0f2ab6d6955 100644
--- a/crates/ide/src/doc_links.rs
+++ b/crates/ide/src/doc_links.rs
@@ -363,7 +363,7 @@ fn map_links<'e>(
     let mut end_link_target: Option<CowStr> = None;
     // normally link's type is determined by the type of link tag in the end event,
     // however in some cases we want to change the link type, for example,
-    // `Shortcut` type doesn't make sense for url links
+    // `Shortcut` type parsed from Start/End tags doesn't make sense for url links
     let mut end_link_type: Option<LinkType> = None;
 
     events.map(move |evt| match evt {
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs
index 8eb16aab293..af502e41065 100644
--- a/crates/ide/src/hover/tests.rs
+++ b/crates/ide/src/hover/tests.rs
@@ -3808,6 +3808,7 @@ fn foo() {
 /// [closure]
 /// [closures][closure]
 /// [threads]
+/// <https://doc.rust-lang.org/nightly/book/ch13-01-closures.html>
 ///
 /// [closure]: ../book/ch13-01-closures.html
 /// [threads]: ../book/ch16-01-threads.html#using-move-closures-with-threads
@@ -3825,6 +3826,7 @@ mod move_keyword {}
             [closure](https://doc.rust-lang.org/nightly/book/ch13-01-closures.html)
             [closures](https://doc.rust-lang.org/nightly/book/ch13-01-closures.html)
             [threads](https://doc.rust-lang.org/nightly/book/ch16-01-threads.html#using-move-closures-with-threads)
+            <https://doc.rust-lang.org/nightly/book/ch13-01-closures.html>
         "##]],
     );
 }