Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1a7efc8

Browse files
committed
Fix comments.
1 parent 2e95392 commit 1a7efc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎module.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static PyObject *context_get(ContextData *self, PyObject *args) {
304304

305305
// _quickjs.Context.set_memory_limit
306306
//
307-
// Retrieves a global variable from the JS context.
307+
// Sets the memory limit of the context.
308308
static PyObject *context_set_memory_limit(ContextData *self, PyObject *args) {
309309
Py_ssize_t limit;
310310
if (!PyArg_ParseTuple(args, "n", &limit)) {
@@ -316,7 +316,7 @@ static PyObject *context_set_memory_limit(ContextData *self, PyObject *args) {
316316

317317
// _quickjs.Context.set_time_limit
318318
//
319-
// Retrieves a global variable from the JS context.
319+
// Sets the CPU time limit of the context. This will be used in an interrupt handler.
320320
static PyObject *context_set_time_limit(ContextData *self, PyObject *args) {
321321
double limit;
322322
if (!PyArg_ParseTuple(args, "d", &limit)) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /