提交 08d3a74a 编写于 作者: M Manish Goregaokar

Allow for parentheses after macro intra-doc-links

上级 5db778af
......@@ -602,6 +602,9 @@ fn fold_item(&mut self, mut item: Item) -> Option<Item> {
kind = Some(ValueNS);
disambiguator = Some(&prefix[..prefix.len() - 1]);
link.trim_start_matches(prefix)
} else if link.ends_with("!()") {
kind = Some(MacroNS);
link.trim_end_matches("!()")
} else if link.ends_with("()") {
kind = Some(ValueNS);
disambiguator = Some("fn");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册