Browse Source

trivia fix to duk_compact api doc: duk_push_new_object -> duk_push_object (missed in earlier commit)

pull/1/head
Sami Vaarala 11 years ago
parent
commit
afbea666f0
  1. 2
      website/api/duk_compact.txt

2
website/api/duk_compact.txt

@ -34,7 +34,7 @@ compacted.
</p>
=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 ] */

Loading…
Cancel
Save