From 7c5cf613cab9f4e6459bf7879e50cac029e2261b Mon Sep 17 00:00:00 2001 From: thebaron88 Date: Tue, 10 May 2022 11:58:31 +0100 Subject: [PATCH] & is not valid inside image alt text Ampersand characters should be HTML escaped in alt text. This was causing validation errors downstream when checking a generated EPUB. --- src/ch04-02-references-and-borrowing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch04-02-references-and-borrowing.md b/src/ch04-02-references-and-borrowing.md index c261440c59..bb82a74d78 100644 --- a/src/ch04-02-references-and-borrowing.md +++ b/src/ch04-02-references-and-borrowing.md @@ -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. -&String s pointing at String s1 +;String s pointing at String s1 Figure 4-5: A diagram of `&String s` pointing at `String s1`