Skip to content

Commit d741116

Browse files
authored
Merge pull request #1549 from ehuss/std-link-comma
Fix std-links for generics with commas.
2 parents 0fcf4ed + cbf6e18 commit d741116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdbook-spec/src/std_links.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tempfile::TempDir;
1212
/// the standard library using rustdoc's intra-doc notation.
1313
const STD_LINK: &str = r"(?: [a-z]+@ )?
1414
(?: std|core|alloc|proc_macro|test )
15-
(?: ::[A-Za-z0-9_!:<>{}()\[\]]+ )?";
15+
(?: ::[A-Za-z0-9_!,:<>{}()\[\]]+ )?";
1616

1717
/// The Regex for a markdown link that might be a link to the standard library.
1818
static STD_LINK_RE: Lazy<Regex> = Lazy::new(|| {

0 commit comments

Comments
 (0)