Skip to content

Commit

Permalink
Enhance example in README.md (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystof-k authored Mar 19, 2024
1 parent 49efbd4 commit 30225b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Now you can detect the encoding via the `CompactEncDet.detect_encoding`,
which is a thin wrapper around `CompactEncDet::DetectEncoding` and `MimeEncodingName` functions from the C++ library.
> ```ruby
> file = File.read("unknown-encoding.txt")
> file = File.read("unknown-encoding.txt", mode: "rb")
> result = CompactEncDet.detect_encoding(file)
> result.encoding
> # => #<Encoding:Windows-1250>
Expand Down

0 comments on commit 30225b8

Please sign in to comment.