Skip to content

Commit e670d33

Browse files
Reword
1 parent eb63f10 commit e670d33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/datetime.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,10 +2767,10 @@ Notes:
27672767

27682768
(11)
27692769
When parsing a string using :meth:`~.datetime.strptime`, if more than one
2770-
directives of the same time unit were used, a SyntaxWarning is raised as
2770+
directive of the same time unit is used, a SyntaxWarning is raised as
27712771
only the last directive gets parsed and applied to the datetime object. For
27722772
example, if the format string contains both ``%Y`` and ``%y``, like ``%Y%y``,
2773-
only the last directive on the string (``%y``) gets used on the resulting
2773+
only the last directive of the string (``%y``) gets used on the resulting
27742774
datetime object.
27752775

27762776

0 commit comments

Comments
 (0)