From 5da02d1287dba5885eccd41337a4268f39aeb5d5 Mon Sep 17 00:00:00 2001 From: Tony Gorez Date: Tue, 30 Aug 2022 19:01:09 +0200 Subject: [PATCH] test: update doc in code --- src/api/encoding.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/encoding.cc b/src/api/encoding.cc index fb4cd61828a17d..b5ccbb18d4b02a 100644 --- a/src/api/encoding.cc +++ b/src/api/encoding.cc @@ -3,6 +3,8 @@ #include "util-inl.h" #include "v8.h" +using namespace std; + namespace node { using v8::HandleScope; @@ -16,8 +18,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') {