Browse Source

fixed a typo in timezones docs.

mitnk 12 years ago
parent
commit
fe443b11de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/topics/i18n/timezones.txt

+ 1 - 1
docs/topics/i18n/timezones.txt

@@ -509,7 +509,7 @@ Setup
    Finally, our calendar system contains interesting traps for computers::
 
        >>> import datetime
-       >>> def substract_one_year(value):       # DON'T DO THAT!
+       >>> def one_year_before(value):       # DON'T DO THAT!
        ...     return value.replace(year=value.year - 1)
        >>> one_year_before(datetime.datetime(2012, 3, 1, 10, 0))
        datetime.datetime(2011, 3, 1, 10, 0)