mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Enhanced RDoc for NilClass (#7500)
This commit is contained in:
parent
45127c84d9
commit
1a8a24a633
Notes:
git
2023-03-13 16:56:22 +00:00
Merged-By: peterzhu2118 <peter@peterzhu.ca>
3 changed files with 118 additions and 52 deletions
|
@ -1692,9 +1692,12 @@ nucomp_to_c(VALUE self)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* nil.to_c -> (0+0i)
|
||||
* to_c -> (0+0i)
|
||||
*
|
||||
* Returns zero as a Complex:
|
||||
*
|
||||
* nil.to_c # => (0+0i)
|
||||
*
|
||||
* Returns zero as a complex.
|
||||
*/
|
||||
static VALUE
|
||||
nilclass_to_c(VALUE self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue