[DOC] Fix spelling
This commit is contained in:
parent
199b298049
commit
afacb8ada5
Notes:
git
2024-10-12 12:48:29 +00:00
Merged: https://github.com/ruby/ruby/pull/11884 Merged-By: nobu <nobu@ruby-lang.org>
@ -1521,7 +1521,7 @@ rb_zstream_total_out(VALUE obj)
|
||||
}
|
||||
|
||||
/*
|
||||
* Guesses the type of the data which have been inputed into the stream. The
|
||||
* Guesses the type of the data which have been inputted into the stream. The
|
||||
* returned value is either <tt>BINARY</tt>, <tt>ASCII</tt>, or
|
||||
* <tt>UNKNOWN</tt>.
|
||||
*/
|
||||
@ -4054,7 +4054,7 @@ rb_gzreader_read(int argc, VALUE *argv, VALUE obj)
|
||||
* call-seq:
|
||||
* gzipreader.readpartial(maxlen [, outbuf]) => string, outbuf
|
||||
*
|
||||
* Reads at most <i>maxlen</i> bytes from the gziped stream but
|
||||
* Reads at most <i>maxlen</i> bytes from the gzipped stream but
|
||||
* it blocks only if <em>gzipreader</em> has no data immediately available.
|
||||
* If the optional <i>outbuf</i> argument is present,
|
||||
* it must reference a String, which will receive the data.
|
||||
|
@ -2368,9 +2368,9 @@ class Reline::LineEditor
|
||||
|
||||
private def search_next_char(key, arg, need_prev_char: false, inclusive: false)
|
||||
if key.instance_of?(String)
|
||||
inputed_char = key
|
||||
inputted_char = key
|
||||
else
|
||||
inputed_char = key.chr
|
||||
inputted_char = key.chr
|
||||
end
|
||||
prev_total = nil
|
||||
total = nil
|
||||
@ -2382,7 +2382,7 @@ class Reline::LineEditor
|
||||
width = Reline::Unicode.get_mbchar_width(mbchar)
|
||||
total = [mbchar.bytesize, width]
|
||||
else
|
||||
if inputed_char == mbchar
|
||||
if inputted_char == mbchar
|
||||
arg -= 1
|
||||
if arg.zero?
|
||||
found = true
|
||||
@ -2420,9 +2420,9 @@ class Reline::LineEditor
|
||||
|
||||
private def search_prev_char(key, arg, need_next_char = false)
|
||||
if key.instance_of?(String)
|
||||
inputed_char = key
|
||||
inputted_char = key
|
||||
else
|
||||
inputed_char = key.chr
|
||||
inputted_char = key.chr
|
||||
end
|
||||
prev_total = nil
|
||||
total = nil
|
||||
@ -2434,7 +2434,7 @@ class Reline::LineEditor
|
||||
width = Reline::Unicode.get_mbchar_width(mbchar)
|
||||
total = [mbchar.bytesize, width]
|
||||
else
|
||||
if inputed_char == mbchar
|
||||
if inputted_char == mbchar
|
||||
arg -= 1
|
||||
if arg.zero?
|
||||
found = true
|
||||
|
@ -260,7 +260,7 @@ class Reline::KeyActor::EmacsTest < Reline::TestCase
|
||||
assert_empty(@line_editor.instance_variable_get(:@rendered_screen).lines)
|
||||
end
|
||||
|
||||
def test_ed_clear_screen_with_inputed
|
||||
def test_ed_clear_screen_with_inputted
|
||||
input_keys('abc')
|
||||
input_keys("\C-b", false)
|
||||
@line_editor.instance_variable_get(:@rendered_screen).lines = [[]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user