summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-02 08:46:05 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-02 08:46:05 +0000
commit4dce0e2c18155d5aa5de38ec54b00f59fe385015 (patch)
treedf836e624ef11267b568b52bf5523c2967b9d161 /time.c
parent12f52be8ee71351b679260e95953f1f3f80abdb8 (diff)
downloadruby-4dce0e2c18155d5aa5de38ec54b00f59fe385015.tar.gz
ruby-4dce0e2c18155d5aa5de38ec54b00f59fe385015.tar.xz
ruby-4dce0e2c18155d5aa5de38ec54b00f59fe385015.zip
* time.c (time_cmp): Time.<=> no longer supports comparison with
numeric. [ruby-core#15332] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/time.c b/time.c
index 2b00a538b..8b3ac6c50 100644
--- a/time.c
+++ b/time.c
@@ -1039,11 +1039,8 @@ time_nsec(VALUE time)
/*
* call-seq:
* time <=> other_time => -1, 0, +1
- * time <=> numeric => -1, 0, +1
*
- * Comparison---Compares <i>time</i> with <i>other_time</i> or with
- * <i>numeric</i>, which is the number of seconds (possibly
- * fractional) since the Epoch.
+ * Comparison---Compares <i>time</i> with <i>other_time</i>.
*
* t = Time.now #=> 2007-11-19 08:12:12 -0600
* t2 = t + 2592000 #=> 2007-12-19 08:12:12 -0600