]> granicus.if.org Git - python/commitdiff
Make example about hiding None return values at the prompt clearer.
authorGeorg Brandl <georg@python.org>
Tue, 30 Oct 2007 17:57:12 +0000 (17:57 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 30 Oct 2007 17:57:12 +0000 (17:57 +0000)
Doc/tutorial/controlflow.rst

index fa445d3573fec96ddf31e8c0e2a48673117f99ea..0f72d3d84988180a56cf7362e77a6e4f10261988 100644 (file)
@@ -235,8 +235,9 @@ like in C, procedures are just functions that don't return a value.  In fact,
 technically speaking, procedures do return a value, albeit a rather boring one.
 This value is called ``None`` (it's a built-in name).  Writing the value
 ``None`` is normally suppressed by the interpreter if it would be the only value
-written.  You can see it if you really want to::
+written.  You can see it if you really want to using :keyword:`print`::
 
+   >>> fib(0)
    >>> print fib(0)
    None