[DOC] Fix the rdoc for File::Stat#size? [ci skip]

This commit is contained in:
Akinori MUSHA 2021-08-17 21:44:41 +09:00
parent edf01d4e82
commit 4814528296

8
file.c
View File

@ -6063,11 +6063,13 @@ rb_stat_z(VALUE obj)
/* /*
* call-seq: * call-seq:
* state.size -> integer * stat.size? -> Integer or nil
* *
* Returns the size of <i>stat</i> in bytes. * Returns +nil+ if <i>stat</i> is a zero-length file, the size of
* the file otherwise.
* *
* File.stat("testfile").size #=> 66 * File.stat("testfile").size? #=> 66
* File.stat("/dev/null").size? #=> nil
* *
*/ */