Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5107123

Browse files
committed
clarify comment and add autolink test case
1 parent 96ff235 commit 5107123

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/ide/src/doc_links.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ fn map_links<'e>(
363363
let mut end_link_target: Option<CowStr> = None;
364364
// normally link's type is determined by the type of link tag in the end event,
365365
// however in some cases we want to change the link type, for example,
366-
// `Shortcut` type doesn't make sense for url links
366+
// `Shortcut` type parsed from Start/End tags doesn't make sense for url links
367367
let mut end_link_type: Option<LinkType> = None;
368368

369369
events.map(move |evt| match evt {

crates/ide/src/hover/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3808,6 +3808,7 @@ fn foo() {
38083808
/// [closure]
38093809
/// [closures][closure]
38103810
/// [threads]
3811+
/// <https://doc.rust-lang.org/nightly/book/ch13-01-closures.html>
38113812
///
38123813
/// [closure]: ../book/ch13-01-closures.html
38133814
/// [threads]: ../book/ch16-01-threads.html#using-move-closures-with-threads
@@ -3825,6 +3826,7 @@ mod move_keyword {}
38253826
[closure](https://doc.rust-lang.org/nightly/book/ch13-01-closures.html)
38263827
[closures](https://doc.rust-lang.org/nightly/book/ch13-01-closures.html)
38273828
[threads](https://doc.rust-lang.org/nightly/book/ch16-01-threads.html#using-move-closures-with-threads)
3829+
<https://doc.rust-lang.org/nightly/book/ch13-01-closures.html>
38283830
"##]],
38293831
);
38303832
}

0 commit comments

Comments
 (0)