comment about link without a href

This commit is contained in:
François Mockers
2021-07-11 02:18:21 +02:00
parent a75e6292c5
commit c6ae96de96

View File

@@ -915,6 +915,7 @@ fn render_assoc_item(
unsafety = unsafety, unsafety = unsafety,
defaultness = defaultness, defaultness = defaultness,
abi = abi, abi = abi,
// links without a href are valid - https://www.w3schools.com/tags/att_a_href.asp
href = href.map(|href| format!("href=\"{}\"", href)).unwrap_or_else(|| "".to_string()), href = href.map(|href| format!("href=\"{}\"", href)).unwrap_or_else(|| "".to_string()),
name = name, name = name,
generics = g.print(cx), generics = g.print(cx),