summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 04:50:09 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 04:50:09 +0000
commit3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023 (patch)
tree219b8d908a1073ef949ec36cab14ac4874cf4bd0 /string.c
parent44da447c16f637c5e662fb20437af0d4f6aca5e8 (diff)
downloadruby-3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023.tar.gz
ruby-3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023.tar.xz
ruby-3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023.zip
* string.c: rdoc for <=>, casecmp
* bignum.c: rdoc for <=> * file.c: ditto * time.c: ditto * compar.c: rdoc git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.c b/string.c
index 9999c8570..4f607a4f2 100644
--- a/string.c
+++ b/string.c
@@ -2162,7 +2162,7 @@ rb_str_eql(VALUE str1, VALUE str2)
/*
* call-seq:
- * str <=> other_str => -1, 0, +1
+ * str <=> other_str => -1, 0, +1 or nil
*
* Comparison---Returns -1 if <i>other_str</i> is greater than, 0 if
* <i>other_str</i> is equal to, and +1 if <i>other_str</i> is less than
@@ -2213,7 +2213,7 @@ rb_str_cmp_m(VALUE str1, VALUE str2)
/*
* call-seq:
- * str.casecmp(other_str) => -1, 0, +1
+ * str.casecmp(other_str) => -1, 0, +1 or nil
*
* Case-insensitive version of <code>String#<=></code>.
*
@@ -7161,7 +7161,7 @@ sym_succ(VALUE sym)
/*
* call-seq:
*
- * str <=> other => -1, 0, +1
+ * str <=> other => -1, 0, +1 or nil
*
* Compares _sym_ with _other_ in string form.
*/
@@ -7178,7 +7178,7 @@ sym_cmp(VALUE sym, VALUE other)
/*
* call-seq:
*
- * sym.casecmp(other) => -1, 0, +1
+ * sym.casecmp(other) => -1, 0, +1 or nil
*
* Case-insensitive version of <code>Symbol#<=></code>.
*/