From 1992d8c0842fae3c7ecd234f3ae0060ac235363e Mon Sep 17 00:00:00 2001 From: paloalto2014 Date: Mon, 7 Nov 2022 17:40:05 +0100 Subject: [PATCH] Corrected spelling to 'writing'. --- README.md | 2 +- c_formatter_42/__main__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c0b0259..bf86670 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ positional arguments: optional arguments: -h, --help show this help message and exit - -c, --confirm Ask confirmation before overwritting any file + -c, --confirm Ask confirmation before overwriting any file ``` --- diff --git a/c_formatter_42/__main__.py b/c_formatter_42/__main__.py index 6ec7565..669eaf1 100755 --- a/c_formatter_42/__main__.py +++ b/c_formatter_42/__main__.py @@ -27,7 +27,7 @@ def main(): arg_parser.add_argument( "-c", "--confirm", action="store_true", - help="Ask confirmation before overwritting any file" + help="Ask confirmation before overwriting any file" ) arg_parser.add_argument( "filepaths", @@ -50,7 +50,7 @@ def main(): .format(filepath)) if result != "y": continue - print("Writting to {}".format(filepath)) + print("Writing to {}".format(filepath)) with open(filepath, "w") as file: file.write(run_all(content)) except OSError as e: