ruby-changes:64388
From: Nobuyoshi <ko1@a...>
Date: Mon, 21 Dec 2020 01:20:13 +0900 (JST)
Subject: [ruby-changes:64388] fb8f011422 (master): Fixed indefinite articles before "Integer" [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=fb8f011422 From fb8f011422c645ebe29e94c3fb2079af73d1d35f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 21 Dec 2020 00:40:56 +0900 Subject: Fixed indefinite articles before "Integer" [ci skip] diff --git a/bignum.c b/bignum.c index 0515e2f..7c55366 100644 --- a/bignum.c +++ b/bignum.c @@ -5512,7 +5512,7 @@ rb_big_le(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/bignum.c#L5512 * * 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 */ diff --git a/class.c b/class.c index a766091..6d5cabc 100644 --- a/class.c +++ b/class.c @@ -1881,7 +1881,7 @@ rb_singleton_class_get(VALUE obj) https://github.com/ruby/ruby/blob/trunk/class.c#L1881 * 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 0b2fdeb..2198b9a 100644 --- a/process.c +++ b/process.c @@ -670,7 +670,7 @@ rb_last_status_clear(void) https://github.com/ruby/ruby/blob/trunk/process.c#L670 * 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 19f8384..4fa1f97 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 https://github.com/ruby/ruby/blob/trunk/spec/mspec/spec/helpers/io_spec.rb#L60 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 03416b6..4a5a236 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/integer/shared/equal.rb#L11 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 85e6455..e63fd8a 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/marshal/shared/load.rb#L667 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 b2784f3..9d8e7fd 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/rational/comparison_spec.rb#L4 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 c15f64c..4f240b5 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/win32ole/win32ole_variable/value_spec.rb#L9 @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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/