From cbf6e180f61e029902c864c78f20bd5070d8c9e4 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 26 Jul 2024 13:40:36 -0700 Subject: [PATCH] Fix std-links for generics with commas. --- mdbook-spec/src/std_links.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdbook-spec/src/std_links.rs b/mdbook-spec/src/std_links.rs index cede9f39e..0c7860b57 100644 --- a/mdbook-spec/src/std_links.rs +++ b/mdbook-spec/src/std_links.rs @@ -12,7 +12,7 @@ use tempfile::TempDir; /// the standard library using rustdoc's intra-doc notation. const STD_LINK: &str = r"(?: [a-z]+@ )? (?: std|core|alloc|proc_macro|test ) - (?: ::[A-Za-z0-9_!:<>{}()\[\]]+ )?"; + (?: ::[A-Za-z0-9_!,:<>{}()\[\]]+ )?"; /// The Regex for a markdown link that might be a link to the standard library. static STD_LINK_RE: Lazy = Lazy::new(|| {