Skip to content

Commit c6ae96d

Browse files
committed
comment about link without a href
1 parent a75e629 commit c6ae96d

File tree

1 file changed

+1
-0
lines changed
  • src/librustdoc/html/render

1 file changed

+1
-0
lines changed

src/librustdoc/html/render/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ fn render_assoc_item(
915915
unsafety = unsafety,
916916
defaultness = defaultness,
917917
abi = abi,
918+
// links without a href are valid - https://www.w3schools.com/tags/att_a_href.asp
918919
href = href.map(|href| format!("href=\"{}\"", href)).unwrap_or_else(|| "".to_string()),
919920
name = name,
920921
generics = g.print(cx),

0 commit comments

Comments
 (0)