From 3d79a8ada43c70f3f714a43aee31bc1200f4e653 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 26 Oct 2016 06:11:23 +0000 Subject: [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 --- object.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'object.c') 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 a.eql?(b) implies a.hash == b.hash. * * 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 class 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 obj is nil, true, or * false, it returns NilClass, TrueClass, or FalseClass, * respectively. - * If obj is a Fixnum or a Symbol, it raises a TypeError. + * If obj is an Integer, a Float or a Symbol, it raises a TypeError. * * Object.new.singleton_class #=> #> * String.singleton_class #=> # @@ -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 arg to a Fixnum or Bignum. + * Converts arg to an Integer. * Numeric types are converted directly (with floating point numbers * being truncated). base (0, or between 2 and 36) is a base for * integer string representation. If arg is a String, -- cgit v1.2.3