diff --git a/template/functions.py b/template/functions.py
index 3d31471e02355858a0293dd7db221f902b6efdf4..5a834edc81e4f2df212076bd6ddbae9f7f17e8fc 100644
--- a/template/functions.py
+++ b/template/functions.py
@@ -49,8 +49,7 @@ def readfile(path):
     ''
     >>> foo = "foo"
     >>> with open("/tmp/foo", "w") as f:
-    ...     f.write(foo)
-    3
+    ...     _ = f.write(foo)
     >>> foo == readfile("/tmp/foo")
     True
     """