Skip to content

Commit

Permalink
encoding.c: fix document [ci skip]
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Aug 30, 2015
1 parent 822c399 commit c16523e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c16523e

Please sign in to comment.