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

Fixed misspelling words.

These are detected by https://github.com/client9/misspell

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2017-10-22 11:27:06 +00:00
parent dfee14d34c
commit 6693e3e723
14 changed files with 18 additions and 18 deletions

View file

@ -68,7 +68,7 @@ Init_fcntl(void)
#ifdef F_DUPFD
/* Document-const: F_DUPFD
*
* Duplicate a file descriptor to the mimimum unused file descriptor
* Duplicate a file descriptor to the minimum unused file descriptor
* greater than or equal to the argument.
*
* The close-on-exec flag of the duplicated file descriptor is set.

View file

@ -446,7 +446,7 @@ class BasicSocket < IO
# Linux-specific optimizations to avoid fcntl for IO#read_nonblock
# and IO#write_nonblock using MSG_DONTWAIT
# Do other platforms suport MSG_DONTWAIT reliably?
# Do other platforms support MSG_DONTWAIT reliably?
if RUBY_PLATFORM =~ /linux/ && Socket.const_defined?(:MSG_DONTWAIT)
def read_nonblock(len, str = nil, exception: true) # :nodoc:
case rv = __recv_nonblock(len, 0, str, exception)

View file

@ -73,7 +73,7 @@ module Win32
end
end
# Creates binary representaiton of a SecBufferDesc structure,
# Creates binary representations of a SecBufferDesc structure,
# including the SecBuffer contained inside.
class SecurityBuffer

View file

@ -77,7 +77,7 @@ module Net::HTTPHeader
else
val = val.to_s
if /[\r\n]/n.match?(val.b)
raise ArgumentError, 'header field value cannnot include CR/LF'
raise ArgumentError, 'header field value cannot include CR/LF'
end
@header[key.downcase] = [val]
end
@ -90,7 +90,7 @@ module Net::HTTPHeader
else
val = val.to_s
if /[\r\n]/n.match?(val.b)
raise ArgumentError, 'header field value cannnot include CR/LF'
raise ArgumentError, 'header field value cannot include CR/LF'
end
ary.push val
end

View file

@ -16,7 +16,7 @@ You can insert comments about all places. Two styles of comments can be used, Ru
The class block is formed like this:
class CLASS_NAME
[precedance table]
[precedence table]
[token declarations]
[expected number of S/R conflicts]
[options]

View file

@ -8,7 +8,7 @@ class Test_StringCapacity < Test::Unit::TestCase
Bug::String.capacity(str)
end
def test_capacity_embeded
def test_capacity_embedded
size = RbConfig::SIZEOF['void*'] * 3 - 1
assert_equal size, capa('foo')
end

View file

@ -315,7 +315,7 @@ class IMAPTest < Test::Unit::TestCase
imap.idle(0.2) do |res|
responses.push(res)
end
# There is no gurantee that this thread has received all the responses,
# There is no guarantee that this thread has received all the responses,
# so check the response length.
if responses.length > 0
assert_instance_of(Net::IMAP::ContinuationRequest, responses[0])
@ -328,7 +328,7 @@ class IMAPTest < Test::Unit::TestCase
end
end
end
# Also, there is no gurantee that the server thread has stored
# Also, there is no guarantee that the server thread has stored
# all the requests into the array, so check the length.
if requests.length > 0
assert_equal("RUBY0001 IDLE\r\n", requests[0])

View file

@ -247,7 +247,7 @@ EOF
assert_equal("AUTH=PLAIN", response.data.last)
end
def test_mixed_boundry
def test_mixed_boundary
parser = Net::IMAP::ResponseParser.new
response = parser.parse("* 2688 FETCH (UID 179161 BODYSTRUCTURE (" \
"(\"TEXT\" \"PLAIN\" (\"CHARSET\" \"iso-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 200 4 NIL NIL NIL)" \

View file

@ -544,7 +544,7 @@ class TestPathname < Test::Unit::TestCase
defassert(:pathsubext, 'lex.yy.o', 'lex.yy.c', '.o')
defassert(:pathsubext, 'fooaa.o', 'fooaa', '.o')
defassert(:pathsubext, 'd.e/aa.o', 'd.e/aa', '.o')
defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embeded[ruby-core:31640]', '.bug-3664')
defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embedded[ruby-core:31640]', '.bug-3664')
def test_sub_matchdata
result = Pathname("abc.gif").sub(/\..*/) {

View file

@ -2624,8 +2624,8 @@ class TestArray < Test::Unit::TestCase
def test_array_subclass
assert_equal(Array2, Array2[1,2,3].uniq.class, "[ruby-dev:34581]")
assert_equal(Array2, Array2[1,2][0,1].class) # embeded
assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embeded
assert_equal(Array2, Array2[1,2][0,1].class) # embedded
assert_equal(Array2, Array2[*(1..100)][1..99].class) #not embedded
end
def test_inspect

View file

@ -89,7 +89,7 @@ class TestClass < Test::Unit::TestCase
end
end
def test_instanciate_singleton_class
def test_instantiate_singleton_class
c = class << Object.new; self; end
assert_raise(TypeError) { c.new }
end

View file

@ -234,7 +234,7 @@ class TestFiber < Test::Unit::TestCase
assert_instance_of(Class, Fiber.new(&Class.new.method(:undef_method)).resume(:to_s), bug5083)
end
def test_prohibit_resume_transfered_fiber
def test_prohibit_resume_transferred_fiber
assert_raise(FiberError){
root_fiber = Fiber.current
f = Fiber.new{

View file

@ -3586,7 +3586,7 @@ __END__
after = ObjectSpace.count_objects(res)[:T_STRING]
assert_equal before, after,
'no strings left over after write [ruby-core:78898] [Bug #13085]'
assert_not_predicate buf, :frozen?, 'no inadvertant freeze'
assert_not_predicate buf, :frozen?, 'no inadvertent freeze'
assert_equal buf.bytesize, n, 'IO#write wrote expected size'
assert_equal s, n, 'IO#syswrite wrote expected size'
end

View file

@ -1041,7 +1041,7 @@ eom
begin;
tap do
result << :begin
raise "An exception occured!"
raise "An exception occurred!"
ensure
result << :ensure
end
@ -1057,7 +1057,7 @@ eom
begin;
tap do
result << :begin
raise "An exception occured!"
raise "An exception occurred!"
rescue
result << :rescue
else