1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed typos in comments and docs.

This commit is contained in:
luz.paz
2018-08-01 12:55:53 -04:00
committed by Tim Graham
parent 4263cd0e09
commit 97e637a87f
20 changed files with 22 additions and 23 deletions

View File

@@ -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)

View File

@@ -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.