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:
parent
ad534a677a
commit
fb8f011422
8 changed files with 8 additions and 8 deletions
2
bignum.c
2
bignum.c
|
@ -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
|
||||
*/
|
||||
|
|
2
class.c
2
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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue