From d9817a04ff628a26b4bc6ccaedfe713d279932a1 Mon Sep 17 00:00:00 2001
From: Tim Gates <tim.gates@iress.com>
Date: Sat, 3 Sep 2022 08:33:58 +1000
Subject: [PATCH] docs: Fix a few typos

There are small typos in:
- README.rst
- django_js_reverse/core.py

Fixes:
- Should read `pattern` rather than `patern`.
- Should read `output` rather than `ouptut`.
- Should read `namespace` rather than `namaspace`.
- Should read `minification` rather than `minfication`.
- Should read `arguments` rather than `aguments`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
---
 README.rst                | 6 +++---
 django_js_reverse/core.py | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.rst b/README.rst
index e8662ba..92b1517 100644
--- a/README.rst
+++ b/README.rst
@@ -233,7 +233,7 @@ notation instead:
     Urls['betterliving-get-house']('house', 12)
     Urls['namespace:betterliving-get-house']('house', 12)
 
-You can also pass javascript objects to match keyword aguments like the
+You can also pass javascript objects to match keyword arguments like the
 examples bellow:
 
 ::
@@ -259,7 +259,7 @@ used to access the named urls is attached to. Default is :code:`this`
     JS_REVERSE_JS_GLOBAL_OBJECT_NAME = 'window'
 
 
-Optionally, you can disable the minfication of the generated javascript file
+Optionally, you can disable the minification of the generated javascript file
 by django setting
 
 ::
@@ -282,7 +282,7 @@ To exclude any namespaces from the generated javascript file, add them to the `J
 If you want to include only specific namespaces add them to the `JS_REVERSE_INCLUDE_ONLY_NAMESPACES` setting
 tips:
 * Use "" (empty string) for urls without namespace
-* Use "foo\0" to include urls just from "foo" namaspace and not from any subnamespaces (e.g. "foo:bar")
+* Use "foo\0" to include urls just from "foo" namespace and not from any subnamespaces (e.g. "foo:bar")
 
 ::
 
diff --git a/django_js_reverse/core.py b/django_js_reverse/core.py
index 5f81863..105edaa 100755
--- a/django_js_reverse/core.py
+++ b/django_js_reverse/core.py
@@ -36,7 +36,7 @@
 
 def prepare_url_list(urlresolver, namespace_path='', namespace=''):
     """
-    returns list of tuples [(<url_name>, <url_patern_tuple> ), ...]
+    returns list of tuples [(<url_name>, <url_pattern_tuple> ), ...]
     """
     exclude_ns = getattr(settings, 'JS_REVERSE_EXCLUDE_NAMESPACES', JS_EXCLUDE_NAMESPACES)
     include_only_ns = getattr(settings, 'JS_REVERSE_INCLUDE_ONLY_NAMESPACES', JS_INCLUDE_ONLY_NAMESPACES)
@@ -110,7 +110,7 @@ def generate_json(default_urlresolver, script_prefix=None):
     if script_prefix is None:
         script_prefix = urlresolvers.get_script_prefix()
 
-    # Ensure consistent ouptut ordering
+    # Ensure consistent output ordering
     urls = sorted(list(prepare_url_list(default_urlresolver)))
 
     return collections.OrderedDict([