mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Update example in doctest chapter that uses math.floor to reflect the
fact that the result is an int in py3k. Thanks to 'flox' for pointing out the discrepancy.
This commit is contained in:
parent
9520a430ef
commit
7c5714f78c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue