diff options
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/base.py | 2 | ||||
| -rw-r--r-- | django/template/defaultfilters.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/template/base.py b/django/template/base.py index f6a60ecdf7..9f4fe3363d 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -760,7 +760,7 @@ class Variable: # catching. Since this should only happen at compile time, that's # probably OK. - # Try to interpret values containg a period or an 'e'/'E' + # Try to interpret values containing a period or an 'e'/'E' # (possibly scientific notation) as a float; otherwise, try int. if '.' in var or 'e' in var.lower(): self.literal = float(var) diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 53b9ade716..400ce7ceb5 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -222,8 +222,8 @@ def stringformat(value, arg): """ Format the variable according to the arg, a string formatting specifier. - This specifier uses Python string formating syntax, with the exception that - the leading "%" is dropped. + This specifier uses Python string formatting syntax, with the exception + that the leading "%" is dropped. See https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting for documentation of Python string formatting. |
