Prefer executable code examples
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index ef6f087..f3def84 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -266,7 +266,7 @@
 
     A good construction looks like:
 
-    .. code-block:: pycon
+    .. doctest::
 
         >>> import os
         >>> iv = os.urandom(16)
@@ -274,7 +274,7 @@
 
     While the following is bad and will leak information:
 
-    .. code-block:: pycon
+    .. doctest::
 
         >>> iv = "a" * 16
         >>> mode = CBC(iv)