diff --git a/xml5ever/src/serialize/mod.rs b/xml5ever/src/serialize/mod.rs
index f39933d5..ff5b2a95 100644
--- a/xml5ever/src/serialize/mod.rs
+++ b/xml5ever/src/serialize/mod.rs
@@ -94,7 +94,7 @@ pub type AttrRef<'a> = (&'a QName, &'a str);
/// depending on where the text is written inside the tag or attribute value.
///
/// For example
-///```
+///```text
/// '&-quotes' becomes '&-quotes'
/// becomes