Skip to content

Commit fe443b1

Browse files
committed
fixed a typo in timezones docs.
1 parent 76d5daa commit fe443b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/i18n/timezones.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ Setup
509509
Finally, our calendar system contains interesting traps for computers::
510510

511511
>>> import datetime
512-
>>> def substract_one_year(value): # DON'T DO THAT!
512+
>>> def one_year_before(value): # DON'T DO THAT!
513513
... return value.replace(year=value.year - 1)
514514
>>> one_year_before(datetime.datetime(2012, 3, 1, 10, 0))
515515
datetime.datetime(2011, 3, 1, 10, 0)

0 commit comments

Comments
 (0)