--- a/doc/source/knowledge_bases/special.txt
+++ b/doc/source/knowledge_bases/special.txt
@@ -185,7 +185,7 @@
     >>> engine.prove_1('special', 'check_command', (('false',),), 0)
     Traceback (most recent call last):
         ...
-    CanNotProve: Can not prove special.check_command((false))
+    pyke.knowledge_engine.CanNotProve: Can not prove special.check_command((false))
 
 Command
 -------
@@ -214,7 +214,7 @@
     ...                        pattern.pattern_literal(stdin))) \
     ...       as gen:
     ...         for no_plan in gen:
-    ...             print output.as_data(my_context)
+    ...             print(output.as_data(my_context))
     >>> run_command('command', ('echo', 'hi', 'mom'))
     ('hi mom',)
     >>> run_command('command', ('ls',))   # doctest: +NORMALIZE_WHITESPACE
@@ -240,7 +240,7 @@
     >>> run_command('command', ('false',))
     Traceback (most recent call last):
         ...
-    CalledProcessError: Command 'false' returned non-zero exit status 1
+    subprocess.CalledProcessError: Command 'false' returned non-zero exit status 1
 
 General_command
 ---------------