]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in datetime documentation.
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 5 Jun 2016 04:36:53 +0000 (21:36 -0700)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 5 Jun 2016 04:36:53 +0000 (21:36 -0700)
Doc/library/datetime.rst

index b12558874517e4668ae4b6e5e677f65a29b49c87..4b6b46780c3b04315b72fb82560163ece1bde7dc 100644 (file)
@@ -1466,9 +1466,9 @@ Instance methods:
 
 
       >>> from datetime import time
-      >>> time(hours=12, minute=34, second=56, microsecond=123456).isoformat(timespec='minutes')
+      >>> time(hour=12, minute=34, second=56, microsecond=123456).isoformat(timespec='minutes')
       '12:34'
-      >>> dt = time(hours=12, minute=34, second=56, microsecond=0)
+      >>> dt = time(hour=12, minute=34, second=56, microsecond=0)
       >>> dt.isoformat(timespec='microseconds')
       '12:34:56.000000'
       >>> dt.isoformat(timespec='auto')