Skip to content

Commit ee1a7f6

Browse files
committed
add comment
1 parent 59e5131 commit ee1a7f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/_json.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ escape_unicode(PyObject *pystr)
304304
}
305305

306306
// Take a PyUnicode pystr and write an ASCII-only escaped string to writer.
307+
// Same to ascii_escape_unicode(), but write to PyUnicodeWriter instead of
308+
// return Unicode object.
307309
static int
308310
write_escaped_ascii(PyUnicodeWriter *writer, PyObject *pystr)
309311
{
@@ -346,6 +348,8 @@ write_escaped_ascii(PyUnicodeWriter *writer, PyObject *pystr)
346348
}
347349

348350
// Take a PyUnicode pystr and write an escaped string to writer.
351+
// Same to escape_unicode(), but write to PyUnicodeWriter instead of
352+
// return Unicode object.
349353
static int
350354
write_escaped_unicode(PyUnicodeWriter *writer, PyObject *pystr)
351355
{

0 commit comments

Comments
 (0)