1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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:
* 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
*
*/