From fb8f011422c645ebe29e94c3fb2079af73d1d35f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 21 Dec 2020 00:40:56 +0900 Subject: [PATCH] Fixed indefinite articles before "Integer" [ci skip] --- bignum.c | 2 +- class.c | 2 +- process.c | 2 +- spec/mspec/spec/helpers/io_spec.rb | 2 +- spec/ruby/core/integer/shared/equal.rb | 2 +- spec/ruby/core/marshal/shared/load.rb | 2 +- spec/ruby/core/rational/comparison_spec.rb | 2 +- spec/ruby/library/win32ole/win32ole_variable/value_spec.rb | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bignum.c b/bignum.c index 0515e2f0d6..7c55366ecb 100644 --- a/bignum.c +++ b/bignum.c @@ -5512,7 +5512,7 @@ rb_big_le(VALUE x, VALUE y) * * Returns true only if obj has the same value * as big. Contrast this with Integer#eql?, which requires - * obj to be a Integer. + * obj to be an Integer. * * 68719476736 == 68719476736.0 #=> true */ diff --git a/class.c b/class.c index a76609112f..6d5cabcc6d 100644 --- a/class.c +++ b/class.c @@ -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. diff --git a/process.c b/process.c index 0b2fdeb840..2198b9a99c 100644 --- a/process.c +++ b/process.c @@ -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 diff --git a/spec/mspec/spec/helpers/io_spec.rb b/spec/mspec/spec/helpers/io_spec.rb index 19f8384912..4fa1f97d46 100644 --- a/spec/mspec/spec/helpers/io_spec.rb +++ b/spec/mspec/spec/helpers/io_spec.rb @@ -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) diff --git a/spec/ruby/core/integer/shared/equal.rb b/spec/ruby/core/integer/shared/equal.rb index 03416b60f5..4a5a236ffa 100644 --- a/spec/ruby/core/integer/shared/equal.rb +++ b/spec/ruby/core/integer/shared/equal.rb @@ -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') diff --git a/spec/ruby/core/marshal/shared/load.rb b/spec/ruby/core/marshal/shared/load.rb index 85e645507f..e63fd8adda 100644 --- a/spec/ruby/core/marshal/shared/load.rb +++ b/spec/ruby/core/marshal/shared/load.rb @@ -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 diff --git a/spec/ruby/core/rational/comparison_spec.rb b/spec/ruby/core/rational/comparison_spec.rb index b2784f3e7d..9d8e7fd7ee 100644 --- a/spec/ruby/core/rational/comparison_spec.rb +++ b/spec/ruby/core/rational/comparison_spec.rb @@ -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 diff --git a/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb b/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb index c15f64c2c5..4f240b561c 100644 --- a/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb +++ b/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb @@ -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