[前][次][番号順一覧][スレッド一覧]

ruby-changes:39646

From: nobu <ko1@a...>
Date: Sun, 30 Aug 2015 17:32:43 +0900 (JST)
Subject: [ruby-changes:39646] nobu:r51727 (trunk): encoding.c: fix document [ci skip]

nobu	2015-08-30 17:32:37 +0900 (Sun, 30 Aug 2015)

  New Revision: 51727

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51727

  Log:
    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.

  Modified files:
    trunk/encoding.c
Index: encoding.c
===================================================================
--- encoding.c	(revision 51726)
+++ encoding.c	(revision 51727)
@@ -505,7 +505,7 @@ enc_ascii_compatible_p(VALUE enc) https://github.com/ruby/ruby/blob/trunk/encoding.c#L505
 }
 
 /*
- * 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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]