aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-14 08:38:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-14 08:38:18 +0000
commit11f3462fb7e66d366224984bc38a0e6a5e7a50d6 (patch)
tree3347bb1258e5bf4e4433cc3af40c9a6b0f611ccc
parent269bd16b28e86d1333969389b7b402f2915e336f (diff)
downloadruby-11f3462fb7e66d366224984bc38a0e6a5e7a50d6.tar.gz
* io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.
[ruby-core:14010] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--io.c4
-rw-r--r--string.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 96a2e967d0..839461d0fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 14 16:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.
+ [ruby-core:14010]
+
Fri Dec 14 16:06:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_cmp): encoding aware comparison.
diff --git a/io.c b/io.c
index f0d314396b..d62270ed7f 100644
--- a/io.c
+++ b/io.c
@@ -4333,7 +4333,9 @@ rb_p(VALUE obj) /* for debug print within C code */
/*
* call-seq:
- * p(obj, ...) => nil
+ * p(obj) => obj
+ * p(obj1, obj2, ...) => [obj, ...]
+ * p() => nil
*
* For each object, directly writes
* _obj_.+inspect+ followed by the current output
diff --git a/string.c b/string.c
index 217e255a90..0857596cd0 100644
--- a/string.c
+++ b/string.c
@@ -1410,7 +1410,7 @@ rb_str_cmp_m(VALUE str1, VALUE str2)
static VALUE
rb_str_casecmp(VALUE str1, VALUE str2)
{
- long i, len;
+ long len;
int retval;
rb_encoding *enc;
char *p1, *p1end, *p2, *p2end;