Skip to content

Commit

Permalink
& is not valid inside image alt text
Browse files Browse the repository at this point in the history
Ampersand characters should be HTML escaped in alt text.
This was causing validation errors downstream when checking a generated EPUB.
  • Loading branch information
thebaron88 authored and carols10cents committed May 12, 2022
1 parent 4ae57cf commit 7c5cf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch04-02-references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function return value is gone. Second, note that we pass `&s1` into
`String`. These ampersands represent *references*, and they allow you to refer
to some value without taking ownership of it. Figure 4-5 depicts this concept.

<img alt="&String s pointing at String s1" src="img/trpl04-05.svg" class="center" />
<img alt="&#59;String s pointing at String s1" src="img/trpl04-05.svg" class="center" />

<span class="caption">Figure 4-5: A diagram of `&String s` pointing at `String
s1`</span>
Expand Down

0 comments on commit 7c5cf61

Please sign in to comment.