mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-28 21:05:13 +00:00
clarify comment and add autolink test case
This commit is contained in:
parent
96ff235770
commit
5107123f9a
2 changed files with 3 additions and 1 deletions
|
@ -363,7 +363,7 @@ fn map_links<'e>(
|
||||||
let mut end_link_target: Option<CowStr> = None;
|
let mut end_link_target: Option<CowStr> = None;
|
||||||
// normally link's type is determined by the type of link tag in the end event,
|
// 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,
|
// 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;
|
let mut end_link_type: Option<LinkType> = None;
|
||||||
|
|
||||||
events.map(move |evt| match evt {
|
events.map(move |evt| match evt {
|
||||||
|
|
|
@ -3808,6 +3808,7 @@ fn foo() {
|
||||||
/// [closure]
|
/// [closure]
|
||||||
/// [closures][closure]
|
/// [closures][closure]
|
||||||
/// [threads]
|
/// [threads]
|
||||||
|
/// <https://doc.rust-lang.org/nightly/book/ch13-01-closures.html>
|
||||||
///
|
///
|
||||||
/// [closure]: ../book/ch13-01-closures.html
|
/// [closure]: ../book/ch13-01-closures.html
|
||||||
/// [threads]: ../book/ch16-01-threads.html#using-move-closures-with-threads
|
/// [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)
|
[closure](https://doc.rust-lang.org/nightly/book/ch13-01-closures.html)
|
||||||
[closures](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)
|
[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>
|
||||||
"##]],
|
"##]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue