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:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user