Skip to content

Commit

Permalink
[DOC] Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Oct 12, 2024
1 parent 199b298 commit afacb8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ext/zlib/zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>.
*/
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2368,9 +2368,9 @@ def finish

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
Expand All @@ -2382,7 +2382,7 @@ def finish
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
Expand Down Expand Up @@ -2420,9 +2420,9 @@ def finish

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
Expand All @@ -2434,7 +2434,7 @@ def finish
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
Expand Down
2 changes: 1 addition & 1 deletion test/reline/test_key_actor_emacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def test_ed_clear_screen
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 = [[]]
Expand Down

0 comments on commit afacb8a

Please sign in to comment.