Fix trailing whitespace errors.

This commit is contained in:
Kale Kundert 2016-03-07 19:56:23 -08:00
parent c9c73b8d8e
commit 6a902924f8
1 changed files with 2 additions and 2 deletions

View File

@ -1382,7 +1382,7 @@ class approx(object):
you're expecting and ``a`` is the value you're comparing to. This you're expecting and ``a`` is the value you're comparing to. This
definition breaks down when the numbers being compared get very close to definition breaks down when the numbers being compared get very close to
zero, so ``approx`` will also consider two numbers to be equal if the zero, so ``approx`` will also consider two numbers to be equal if the
absolute difference between them is less than one part in a trillion (e.g. absolute difference between them is less than one part in a trillion (e.g.
``1e-12``). ``1e-12``).
Both the relative and absolute error thresholds can be changed by passing Both the relative and absolute error thresholds can be changed by passing
@ -1399,7 +1399,7 @@ class approx(object):
consider the relative error between the two values at all. In other words, consider the relative error between the two values at all. In other words,
two numbers that are within the default relative error threshold of 1e-6 two numbers that are within the default relative error threshold of 1e-6
will still be considered unequal if they exceed the specified absolute will still be considered unequal if they exceed the specified absolute
error threshold. If you specify both ``abs`` and ``rel``, the numbers will error threshold. If you specify both ``abs`` and ``rel``, the numbers will
be considered equal if either threshold is met:: be considered equal if either threshold is met::
>>> 1 + 1e-8 == approx(1) >>> 1 + 1e-8 == approx(1)