summaryrefslogtreecommitdiff
path: root/lib/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time.rb')
-rw-r--r--lib/time.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/time.rb b/lib/time.rb
index 970932a200..b565130b50 100644
--- a/lib/time.rb
+++ b/lib/time.rb
@@ -391,6 +391,8 @@ class Time
# heuristic to detect the format of the input string, you provide
# a second argument that describes the format of the string.
#
+ # Raises `ArgumentError` if the date or format is invalid.
+ #
# If a block is given, the year described in +date+ is converted by the
# block. For example:
#