From 8483b8e593351bd5d4cb38a6e02a304e974c46c9 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 27 Apr 2023 23:17:43 +0200 Subject: [PATCH] [3.11] Docs: fix dunders with too many underscores (#103955) --- Doc/library/__main__.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 0a93efac203ce8..363596782d8e3e 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -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::