summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--object.c5
-rw-r--r--version.h2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1bc35cb345..9d944413db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jul 13 23:34:13 2013 Akinori MUSHA <knu@iDaemons.org>
+
+ * object.c: Fix rdoc for Kernel#<=>. [Fix GH-352]
+
Sat Jul 13 23:29:51 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/fileutils.rb (FileUtils#mode_to_s): Define mode_to_s() also
diff --git a/object.c b/object.c
index 30a3d936f6..f9c8f7e91b 100644
--- a/object.c
+++ b/object.c
@@ -1320,7 +1320,8 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
* call-seq:
* obj <=> other -> 0 or nil
*
- * Returns 0 if obj === other, otherwise nil.
+ * Returns 0 if +obj+ and +other+ are the same object
+ * or <code>obj == other</code>, otherwise nil.
*
* The <=> is used by various methods to compare objects, for example
* Enumerable#sort, Enumerable#max etc.
@@ -1330,7 +1331,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
* 1 means self is bigger than other. Nil means the two values could not be
* compared.
*
- * When you defined <=>, you can include Comparable to gain the methods <=, <,
+ * When you define <=>, you can include Comparable to gain the methods <=, <,
* ==, >=, > and between?.
*/
static VALUE
diff --git a/version.h b/version.h
index 38ab1ac0b3..91b03822d8 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.0.0"
#define RUBY_RELEASE_DATE "2013-07-13"
-#define RUBY_PATCHLEVEL 260
+#define RUBY_PATCHLEVEL 261
#define RUBY_RELEASE_YEAR 2013
#define RUBY_RELEASE_MONTH 7