1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed indefinite articles before "Integer" [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-12-21 00:40:56 +09:00
parent ad534a677a
commit fb8f011422
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
8 changed files with 8 additions and 8 deletions

View file

@ -5512,7 +5512,7 @@ rb_big_le(VALUE x, VALUE y)
*
* Returns <code>true</code> only if <i>obj</i> has the same value
* as <i>big</i>. Contrast this with Integer#eql?, which requires
* <i>obj</i> to be a Integer.
* <i>obj</i> to be an Integer.
*
* 68719476736 == 68719476736.0 #=> true
*/

View file

@ -1881,7 +1881,7 @@ rb_singleton_class_get(VALUE obj)
* Returns the singleton class of \a obj. Creates it if necessary.
*
* \param obj an arbitrary object.
* \throw TypeError if \a obj is a Integer or a Symbol.
* \throw TypeError if \a obj is an Integer or a Symbol.
* \return the singleton class.
*
* \post \a obj has its own singleton class.

View file

@ -670,7 +670,7 @@ rb_last_status_clear(void)
* call-seq:
* stat.to_i -> integer
*
* Returns the bits in _stat_ as a Integer. Poking
* Returns the bits in _stat_ as an Integer. Poking
* around in these bits is platform dependent.
*
* fork { exit 0xab } #=> 26566

View file

@ -60,7 +60,7 @@ describe Object, "#new_fd" do
rm_r @name
end
it "returns a Integer that can be used to create an IO instance" do
it "returns an Integer that can be used to create an IO instance" do
fd = new_fd @name
fd.should be_kind_of(Integer)

View file

@ -11,7 +11,7 @@ describe :integer_equal, shared: true do
10.send(@method, bignum_value).should == false
end
it "calls 'other == self' if the given argument is not a Integer" do
it "calls 'other == self' if the given argument is not an Integer" do
1.send(@method, '*').should == false
obj = mock('one other')

View file

@ -667,7 +667,7 @@ describe :marshal_load, shared: true do
end
end
describe "for a Integer" do
describe "for an Integer" do
it "loads 0" do
Marshal.send(@method, "\004\bi\000").should == 0
Marshal.send(@method, "\004\bi\005").should == 0

View file

@ -4,7 +4,7 @@ describe "Rational#<=> when passed a Rational object" do
it_behaves_like :rational_cmp_rat, :<=>
end
describe "Rational#<=> when passed a Integer object" do
describe "Rational#<=> when passed an Integer object" do
it_behaves_like :rational_cmp_int, :<=>
end

View file

@ -9,7 +9,7 @@ platform_is :windows do
@var = ole_type.variables[0]
end
it "returns a Integer" do
it "returns an Integer" do
# according to doc, this could return nil
@var.value.should be_kind_of Integer
end