]> granicus.if.org Git - python/commitdiff
Update example in doctest chapter that uses math.floor to reflect the
authorR. David Murray <rdmurray@bitdance.com>
Mon, 23 Nov 2009 03:13:23 +0000 (03:13 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 23 Nov 2009 03:13:23 +0000 (03:13 +0000)
fact that the result is an int in py3k.  Thanks to 'flox' for pointing out
the discrepancy.

Doc/library/doctest.rst

index 2aa3ae163f1a2687d68e002437f8445af351cb59..4952e053bd94ceec0aff7b19ba8de05fb29b8281 100644 (file)
@@ -343,7 +343,7 @@ The fine print:
      >>> assert "Easy!"
            >>> import math
                >>> math.floor(1.9)
-               1.0
+               1
 
   and as many leading whitespace characters are stripped from the expected output
   as appeared in the initial ``'>>> '`` line that started the example.