Skip to content

Commit db86bcd

Browse files
authored
Fix typos in comment (#796)
* s/Calcualte/Calculate/ * s/unneccesary/unnecessary/
1 parent e0850cd commit db86bcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/reline/line_editor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ def retrieve_completion_block
11881188
quote_characters = Reline.completer_quote_characters
11891189
before = current_line.byteslice(0, @byte_pointer).grapheme_clusters
11901190
quote = nil
1191-
# Calcualte closing quote when cursor is at the end of the line
1191+
# Calculate closing quote when cursor is at the end of the line
11921192
if current_line.bytesize == @byte_pointer && !quote_characters.empty?
11931193
escaped = false
11941194
before.each do |c|

lib/reline/unicode.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def self.safe_encode(str, encoding)
6161

6262
# This code is essentially doing the same thing as
6363
# `str.encode(utf8, **replace_options).encode(encoding, **replace_options)`
64-
# but also avoids unneccesary irreversible encoding conversion.
64+
# but also avoids unnecessary irreversible encoding conversion.
6565
converted.gsub(/\X/) do |c|
6666
c.encode(Encoding::UTF_8)
6767
c

0 commit comments

Comments
 (0)