[ruby/reline] Fix typos in comment

(https://github.com/ruby/reline/pull/796)

* s/Calcualte/Calculate/

* s/unneccesary/unnecessary/

https://github.com/ruby/reline/commit/db86bcd2bf
This commit is contained in:
Yudai Takada 2024-12-23 02:25:37 +09:00 committed by Hiroshi SHIBATA
parent 778e73b2b3
commit feba2b66ff
Notes: git 2024-12-26 01:27:43 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -1188,7 +1188,7 @@ class Reline::LineEditor
quote_characters = Reline.completer_quote_characters
before = current_line.byteslice(0, @byte_pointer).grapheme_clusters
quote = nil
# Calcualte closing quote when cursor is at the end of the line
# Calculate closing quote when cursor is at the end of the line
if current_line.bytesize == @byte_pointer && !quote_characters.empty?
escaped = false
before.each do |c|

View File

@ -61,7 +61,7 @@ class Reline::Unicode
# This code is essentially doing the same thing as
# `str.encode(utf8, **replace_options).encode(encoding, **replace_options)`
# but also avoids unneccesary irreversible encoding conversion.
# but also avoids unnecessary irreversible encoding conversion.
converted.gsub(/\X/) do |c|
c.encode(Encoding::UTF_8)
c