diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-26 06:11:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-26 06:11:23 +0000 |
commit | 4e44f6ef8668faa59898de2da7612b6a2cad1eb8 (patch) | |
tree | eb94197597c05bf227a627a9467dc2ea3c14a661 /ext | |
parent | 6c4903ce2ce54535e49b940660e57d6bd12f939f (diff) | |
download | ruby-4e44f6ef8668faa59898de2da7612b6a2cad1eb8.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 'ext')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 8 | ||||
-rw-r--r-- | ext/objspace/object_tracing.c | 2 | ||||
-rw-r--r-- | ext/openssl/ossl_pkey_ec.c | 2 | ||||
-rw-r--r-- | ext/socket/basicsocket.c | 4 | ||||
-rw-r--r-- | ext/win32ole/win32ole_variant.c | 2 | ||||
-rw-r--r-- | ext/zlib/zlib.c | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 623bd11cee..8aebb389e9 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -680,7 +680,7 @@ BigDecimal_check_num(Real *p) static VALUE BigDecimal_split(VALUE self); -/* Returns the value as an integer (Fixnum or Bignum). +/* Returns the value as an Integer. * * If the BigNumber is infinity or NaN, raises FloatDomainError. */ @@ -2483,7 +2483,7 @@ static Real *BigDecimal_new(int argc, VALUE *argv); * If it is a String, spaces are ignored and unrecognized characters * terminate the value. * - * digits:: The number of significant digits, as a Fixnum. If omitted or 0, + * digits:: The number of significant digits, as an Integer. If omitted or 0, * the number of significant digits is determined from the initial * value. * @@ -2492,10 +2492,10 @@ static Real *BigDecimal_new(int argc, VALUE *argv); * * ==== Exceptions * - * TypeError:: If the +initial+ type is neither Fixnum, Bignum, Float, + * TypeError:: If the +initial+ type is neither Integer, Float, * Rational, nor BigDecimal, this exception is raised. * - * TypeError:: If the +digits+ is not a Fixnum, this exception is raised. + * TypeError:: If the +digits+ is not an Integer, this exception is raised. * * ArgumentError:: If +initial+ is a Float, and the +digits+ is larger than * Float::DIG + 1, this exception is raised. diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c index 3a7f54427d..d3169c6c48 100644 --- a/ext/objspace/object_tracing.c +++ b/ext/objspace/object_tracing.c @@ -439,7 +439,7 @@ allocation_method_id(VALUE self, VALUE obj) } /* - * call-seq: allocation_generation(object) -> Fixnum + * call-seq: allocation_generation(object) -> integer or nil * * Returns garbage collector generation for the given +object+. * diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c index f0a31231b4..20a7222384 100644 --- a/ext/openssl/ossl_pkey_ec.c +++ b/ext/openssl/ossl_pkey_ec.c @@ -1191,7 +1191,7 @@ static VALUE ossl_ec_group_set_seed(VALUE self, VALUE seed) /* * call-seq: - * group.degree => Fixnum + * group.degree => integer * * See the OpenSSL documentation for EC_GROUP_get_degree() */ diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c index ee967c7b7a..264b882500 100644 --- a/ext/socket/basicsocket.c +++ b/ext/socket/basicsocket.c @@ -158,10 +158,10 @@ bsock_close_write(VALUE sock) * * +optval+ is the value of the option, it is passed to the underlying * setsockopt() as a pointer to a certain number of bytes. How this is * done depends on the type: - * - Fixnum: value is assigned to an int, and a pointer to the int is + * - Integer: value is assigned to an int, and a pointer to the int is * passed, with length of sizeof(int). * - true or false: 1 or 0 (respectively) is assigned to an int, and the - * int is passed as for a Fixnum. Note that +false+ must be passed, + * int is passed as for an Integer. Note that +false+ must be passed, * not +nil+. * - String: the string's data and length is passed to the socket. * * +socketoption+ is an instance of Socket::Option diff --git a/ext/win32ole/win32ole_variant.c b/ext/win32ole/win32ole_variant.c index f0d41839ed..3bbf86df52 100644 --- a/ext/win32ole/win32ole_variant.c +++ b/ext/win32ole/win32ole_variant.c @@ -602,7 +602,7 @@ folevariant_ary_aset(int argc, VALUE *argv, VALUE self) * * Returns Ruby object value from OLE variant. * obj = WIN32OLE_VARIANT.new(1, WIN32OLE::VARIANT::VT_BSTR) - * obj.value # => "1" (not Fixnum object, but String object "1") + * obj.value # => "1" (not Integer object, but String object "1") * */ static VALUE diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 4dfa2a5f34..deb3b04617 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -3218,7 +3218,7 @@ rb_gzfile_set_lineno(VALUE obj, VALUE lineno) * Document-method: Zlib::GzipWriter#mtime= * * Specify the modification time (+mtime+) in the gzip header. - * Using a Fixnum or Integer. + * Using an Integer. * * Setting the mtime in the gzip header does not effect the * mtime of the file generated. Different utilities that |