From 8e52cd7a3d6567485718364d07f428839db077ef Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sun, 31 Mar 2019 02:51:30 +0200 Subject: [PATCH] Fix duk_xmove_top() API doc argument order --- website/api/duk_xmove_top.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/api/duk_xmove_top.yaml b/website/api/duk_xmove_top.yaml index ef753022..c1309fa4 100644 --- a/website/api/duk_xmove_top.yaml +++ b/website/api/duk_xmove_top.yaml @@ -42,13 +42,13 @@ example: | * the target stack allocation explicitly. */ duk_require_stack(new_ctx, nargs); - duk_xmove_top(ctx, new_ctx, nargs); + duk_xmove_top(new_ctx, ctx, nargs); /* Call the function; new_ctx is now: [ func arg1 ... argN ]. */ duk_call(new_ctx, nargs - 1); /* Return the function call result by copying it to the original stack. */ - duk_xmove_top(new_ctx, ctx, 1); + duk_xmove_top(ctx, new_ctx, 1); return 1; }