From 8bdceada9bc7e15def6f4f46b837a9bea94bc86e Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 13 Jul 2020 18:29:24 +0200 Subject: [PATCH] Fix a couple of typos (#507) [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2781ba68..7c909cdf 100644 --- a/README.md +++ b/README.md @@ -568,11 +568,11 @@ Babashka sets the following system properties: - `babashka.main`: the `--main` argument - `babashka.file`: the `--file` argument (normalized using `.getCanonicalPath`) -## `__name__ = "__main__"` pattern +## `__name__ == "__main__"` pattern In Python scripts there is a well-known pattern to check if the current file was the file invoked from the command line, or loaded from another file: the -`__name__ = "__main__"` pattern. In babashka this pattern can be implemented with: +`__name__ == "__main__"` pattern. In babashka this pattern can be implemented with: ``` clojure (= *file* (System/getProperty "babashka.file")