typo
diff --git a/doc/build/syntax.rst b/doc/build/syntax.rst
index 389147e..fe4a860 100644
--- a/doc/build/syntax.rst
+++ b/doc/build/syntax.rst
@@ -441,7 +441,7 @@
     <%text filter="h">
         heres some fake mako ${syntax}
         <%def name="x()">${x}</%def>
-    <%/text>
+    </%text>
 
 Returning Early from a Template
 ===============================