diff options
author | Jeremy Evans <[email protected]> | 2019-06-26 16:36:52 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-07-22 17:36:20 +0900 |
commit | 9095ff53cf6c25154c7f80910aab8d1af45c42ec (patch) | |
tree | b756c9c1c9d45a37272a24e0fae8d1a6cb8d51b6 /ext/date/date_core.c | |
parent | f75561b8d455e1cf92dac8ac8838fdafc88cba71 (diff) |
[ruby/date] Describe what is meant by valid in the Date.valid_date? rdoc
https://github.com/ruby/date/commit/8eca79d1f0
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 67ed6171a7..388b30ba7a 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -2545,9 +2545,12 @@ date_s__valid_civil_p(int argc, VALUE *argv, VALUE klass) * Date.valid_date?(year, month, mday[, start=Date::ITALY]) -> bool * * Returns true if the given calendar date is valid, and false if not. + * Valid in this context is whether the arguments passed to this + * method would be accepted by ::new. * * Date.valid_date?(2001,2,3) #=> true * Date.valid_date?(2001,2,29) #=> false + * Date.valid_date?(2001,2,-1) #=> true * * See also ::jd and ::civil. */ |