]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: fix dunders with too many underscores (#103955) (#103957)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Thu, 27 Apr 2023 22:27:59 +0000 (00:27 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 22:27:59 +0000 (22:27 +0000)
Doc/library/__main__.rst

index 0a93efac203ce8dfa09bdebf113076716d96ec0d..363596782d8e3ec03cf820f802e42c157fec14ec 100644 (file)
@@ -124,7 +124,7 @@ This is where using the ``if __name__ == '__main__'`` code block comes in
 handy. Code within this block won't run unless the module is executed in the
 top-level environment.
 
-Putting as few statements as possible in the block below ``if __name___ ==
+Putting as few statements as possible in the block below ``if __name__ ==
 '__main__'`` can improve code clarity and correctness. Most often, a function
 named ``main`` encapsulates the program's primary behavior::