encoding.c: fix document [ci skip]
* encoding.c (rb_enc_unicode_p): fix document. predicate functions may return non-zero values other than 1 as true. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
822c3999d0
commit
c16523e67b
@ -505,7 +505,7 @@ enc_ascii_compatible_p(VALUE enc)
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns 1 when the encoding is Unicode series other than UTF-7 else 0.
|
||||
* Returns non-zero when the encoding is Unicode series other than UTF-7 else 0.
|
||||
*/
|
||||
int
|
||||
rb_enc_unicode_p(rb_encoding *enc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user