From 4e44f6ef8668faa59898de2da7612b6a2cad1eb8 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 --- string.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 91ee0fc749..68cc400167 100644 --- a/string.c +++ b/string.c @@ -4423,10 +4423,10 @@ rb_str_aset(VALUE str, VALUE indx, VALUE val) * the text it is replacing, the string will be adjusted accordingly. If the * regular expression or string is used as the index doesn't match a position * in the string, IndexError is raised. If the regular expression - * form is used, the optional second Fixnum allows you to specify + * form is used, the optional second Integer allows you to specify * which portion of the match to replace (effectively using the - * MatchData indexing rules. The forms that take a - * Fixnum will raise an IndexError if the value is + * MatchData indexing rules. The forms that take an + * Integer will raise an IndexError if the value is * out of range; the Range form will raise a * RangeError, and the Regexp and String * will raise an IndexError on negative match. @@ -5196,8 +5196,8 @@ str_byte_aref(VALUE str, VALUE indx) * str.byteslice(integer, integer) -> new_str or nil * str.byteslice(range) -> new_str or nil * - * Byte Reference---If passed a single Fixnum, returns a - * substring of one byte at that position. If passed two Fixnum + * Byte Reference---If passed a single Integer, returns a + * substring of one byte at that position. If passed two Integer * objects, returns a substring starting at the offset given by the first, and * a length given by the second. If given a Range, a substring containing * bytes at offsets given by the range is returned. In all three cases, if @@ -8521,7 +8521,7 @@ rb_str_ord(VALUE s) * str.sum(n=16) -> integer * * Returns a basic n-bit checksum of the characters in str, - * where n is the optional Fixnum parameter, defaulting + * where n is the optional Integer parameter, defaulting * to 16. The result is simply the sum of the binary value of each byte in * str modulo 2**n - 1. This is not a particularly good * checksum. -- cgit v1.2.3