From afbea666f057d3413994cbe2a28d7a0545b5a5b8 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Fri, 2 Aug 2013 00:35:36 +0300 Subject: [PATCH] trivia fix to duk_compact api doc: duk_push_new_object -> duk_push_object (missed in earlier commit) --- website/api/duk_compact.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/api/duk_compact.txt b/website/api/duk_compact.txt index f89f86a0..37ee4c83 100644 --- a/website/api/duk_compact.txt +++ b/website/api/duk_compact.txt @@ -34,7 +34,7 @@ compacted.

=example -duk_push_new_object(ctx); /* [ ... obj ] */ +duk_push_object(ctx); /* [ ... obj ] */ duk_push_int(ctx, 42); /* [ ... obj 42 ] */ duk_put_prop_string(ctx, -2, "meaningOfLife"); /* [ ... obj ] */ duk_compact(ctx, -1); /* [ ... obj ] */