Skip to content

Commit

Permalink
s/unneccesary/unnecessary/
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Dec 22, 2024
1 parent f40f335 commit 8cc2e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/unicode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def self.safe_encode(str, encoding)

# 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
Expand Down

0 comments on commit 8cc2e5c

Please sign in to comment.