Skip to content

Commit ef4dcd7

Browse files
committed
Fix copy/paste typo
1 parent 987fb25 commit ef4dcd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/readability/comparison_to_true.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The code below uses the PEP 8 preferred pattern of ``if cond is True:``.
3131
if flag is True:
3232
print "PEP 8 Style Guide prefers this pattern"
3333
34-
Compare values to ``True`` using the pattern ``if cond is True:``
34+
Compare values to ``True`` using the pattern ``if cond:``
3535
.................................................................
3636

3737
The code below uses the PEP 8 preferred pattern of ``if cond:``. This only works if the object, variable, or expression evaluates to a Boolean value of ``True`` or ``False``.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy