Skip to content

Commit 5da02d1

Browse files
committed
test: update doc in code
1 parent 9294aff commit 5da02d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/api/encoding.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include "util-inl.h"
44
#include "v8.h"
55

6+
using namespace std;
7+
68
namespace node {
79

810
using v8::HandleScope;
@@ -16,8 +18,8 @@ enum encoding ParseEncoding(const char* encoding,
1618
case 'u':
1719
case 'U':
1820
// Note: the two first conditions are needed for performance reasons
19-
// as "utf8"/"utf-8" is a common case
20-
// (same for "utf16le/utf-16le" and "ucs2/ucs-2").
21+
// as "utf8"/"utf-8" is a common case.
22+
// (same for other cases below)
2123

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

0 commit comments

Comments
 (0)