]> granicus.if.org Git - python/commitdiff
Fix superfluous if in documentation. (GH-6728)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 May 2018 08:10:12 +0000 (01:10 -0700)
committerGitHub <noreply@github.com>
Wed, 9 May 2018 08:10:12 +0000 (01:10 -0700)
(cherry picked from commit b3c369861b22268dac003eb995951726c972e5ee)

Co-authored-by: Julien Palard <julien@palard.fr>
Doc/library/functions.rst

index 9cb6b0e1b5ca9f8dfa66ed81c21ed6bafd22b8ae..56c1377d1734a9c80a314bd27d9d3aa06d2e83c5 100644 (file)
@@ -720,7 +720,7 @@ are always available.  They are listed here in alphabetical order.
    :meth:`x.__int__() <object.__int__>`. If *x* defines
    :meth:`x.__trunc__() <object.__trunc__>` but not
    :meth:`x.__int__() <object.__int__>`, then return
-   if :meth:`x.__trunc__() <object.__trunc__>`.  For floating point numbers,
+   :meth:`x.__trunc__() <object.__trunc__>`.  For floating point numbers,
    this truncates towards zero.
 
    If *x* is not a number or if *base* is given, then *x* must be a string,