aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-26 06:11:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-26 06:11:23 +0000
commit3d79a8ada43c70f3f714a43aee31bc1200f4e653 (patch)
treeeb94197597c05bf227a627a9467dc2ea3c14a661 /object.c
parent01aba3536a9c6bf5944541fa6098b83ef140ba9c (diff)
downloadruby-3d79a8ada43c70f3f714a43aee31bc1200f4e653.tar.gz
[DOC] replace Fixnum with Integer [ci skip]
* numeric.c: [DOC] update document for Integer class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/object.c b/object.c
index 9769c1ee26..fb8cee4071 100644
--- a/object.c
+++ b/object.c
@@ -147,12 +147,12 @@ rb_obj_equal(VALUE obj1, VALUE obj2)
* call-seq:
* obj.hash -> integer
*
- * Generates a Fixnum hash value for this object. This function must have the
+ * Generates an Integer hash value for this object. This function must have the
* property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>.
*
* The hash value is used along with #eql? by the Hash class to determine if
* two objects reference the same hash key. Any hash value that exceeds the
- * capacity of a Fixnum will be truncated before being used.
+ * capacity of an Integer will be truncated before being used.
*
* The hash value for an object may not be identical across invocations or
* implementations of Ruby. If you need a stable identifier across Ruby
@@ -221,7 +221,7 @@ rb_class_real(VALUE cl)
* called with an explicit receiver, as <code>class</code> is also a
* reserved word in Ruby.
*
- * 1.class #=> Fixnum
+ * 1.class #=> Integer
* self.class #=> Object
*/
@@ -241,7 +241,7 @@ rb_obj_class(VALUE obj)
* If <i>obj</i> is <code>nil</code>, <code>true</code>, or
* <code>false</code>, it returns NilClass, TrueClass, or FalseClass,
* respectively.
- * If <i>obj</i> is a Fixnum or a Symbol, it raises a TypeError.
+ * If <i>obj</i> is an Integer, a Float or a Symbol, it raises a TypeError.
*
* Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
* String.singleton_class #=> #<Class:String>
@@ -1087,8 +1087,8 @@ rb_obj_infect(VALUE obj1, VALUE obj2)
* prog.rb:3:in `<<': can't modify frozen Array (RuntimeError)
* from prog.rb:3
*
- * Objects of the following classes are always frozen: Fixnum,
- * Bignum, Float, Symbol.
+ * Objects of the following classes are always frozen: Integer,
+ * Float, Symbol.
*/
VALUE
@@ -2734,7 +2734,7 @@ rb_Integer(VALUE val)
* call-seq:
* Integer(arg, base=0) -> integer
*
- * Converts <i>arg</i> to a <code>Fixnum</code> or <code>Bignum</code>.
+ * Converts <i>arg</i> to an <code>Integer</code>.
* Numeric types are converted directly (with floating point numbers
* being truncated). <i>base</i> (0, or between 2 and 36) is a base for
* integer string representation. If <i>arg</i> is a <code>String</code>,