Skip to content

Commit

Permalink
comment about link without a href
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jul 11, 2021
1 parent a75e629 commit c6ae96d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/html/render/mod.rs
Expand Up @@ -915,6 +915,7 @@ fn render_assoc_item(
unsafety = unsafety,
defaultness = defaultness,
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()),
name = name,
generics = g.print(cx),
Expand Down

0 comments on commit c6ae96d

Please sign in to comment.