Skip to content

Commit ae0d477

Browse files
thyogomatzbot
authored andcommitted
[ruby/time] Fix wrong result in Time.rfc2822 documentation
(ruby/time#76) The sample code and its result in the Time.rfc2822 documentation appear to be inconsistent. ruby/time@b602d284aa
1 parent c92faa5 commit ae0d477

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/time.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def strptime(date, format, now=self.now)
510510
# require 'time'
511511
#
512512
# Time.rfc2822("Wed, 05 Oct 2011 22:26:12 -0400")
513-
# #=> 2010-10-05 22:26:12 -0400
513+
# #=> 2011-10-05 22:26:12 -0400
514514
#
515515
# You must require 'time' to use this method.
516516
#

0 commit comments

Comments
 (0)