Skip to content

Commit

Permalink
test: update doc in code
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-go committed Aug 30, 2022
1 parent 9294aff commit 50d40c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/encoding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ enum encoding ParseEncoding(const char* encoding,
case 'u':
case 'U':
// Note: the two first conditions are needed for performance reasons
// as "utf8"/"utf-8" is a common case
// (same for "utf16le/utf-16le" and "ucs2/ucs-2").
// as "utf8"/"utf-8" is a common case.
// (same for other cases below)

// utf, utf16le
if (encoding[1] == 't' && encoding[2] == 'f') {
Expand Down

0 comments on commit 50d40c1

Please sign in to comment.