diff options
| author | luz.paz <luzpaz@users.noreply.github.com> | 2018-08-01 12:55:53 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-08-01 16:09:22 -0400 |
| commit | 97e637a87fb45c4de970cca6cb783d93473c9d15 (patch) | |
| tree | f2bc4b9a102aa1277005ee469b6f7e390c925c8d /django/template | |
| parent | 4263cd0e095c55a1011e5bf0746d651126a8da5f (diff) | |
Fixed typos in comments and docs.
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. |
