[DOC] Specify the unit of return value for Time#-

This commit is contained in:
haseponpon 2023-08-16 22:51:17 +09:00 committed by GitHub
parent 5a40f7db54
commit 089227e948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-08-16 13:51:38 +00:00
Merged: https://github.com/ruby/ruby/pull/8217

Merged-By: nobu <nobu@ruby-lang.org>

2
time.c
View File

@ -4410,7 +4410,7 @@ time_plus(VALUE time1, VALUE time2)
*
* When +other_time+ is given,
* returns a Float whose value is the difference
* of the numeric values of +self+ and +other_time+:
* of the numeric values of +self+ and +other_time+ in seconds:
*
* t - t # => 0.0
*