summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2024-10-12 22:48:10 +1000
committerGitHub <[email protected]>2024-10-12 12:48:10 +0000
commitafacb8ada5788299468cce6247601412e12002a4 (patch)
treea21bdce199a5e1fa332fcfeaee96a0eb636dbf5a
parent199b2980496a6725f4bb44bc6e9088c800f67a50 (diff)
[DOC] Fix spelling
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11884 Merged-By: nobu <[email protected]>
-rw-r--r--ext/zlib/zlib.c4
-rw-r--r--lib/reline/line_editor.rb12
-rw-r--r--test/reline/test_key_actor_emacs.rb2
3 files changed, 9 insertions, 9 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 50d8dd40c6..0899861c02 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -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.
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index b815659713..e01d859262 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -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
diff --git a/test/reline/test_key_actor_emacs.rb b/test/reline/test_key_actor_emacs.rb
index dc12c803f5..cd8971298d 100644
--- a/test/reline/test_key_actor_emacs.rb
+++ b/test/reline/test_key_actor_emacs.rb
@@ -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 = [[]]