Browse Source

Trivial fix for guide virtualproperties.html

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
676e3d00c4
  1. 2
      website/guide/virtualproperties.html

2
website/guide/virtualproperties.html

@ -135,7 +135,7 @@ duk_put_prop_string(ctx, -2, "key");
<p>The Duktape/C getter function would then (similarly for the setter):</p>
<pre class="c-code">
static int my_getter(duk_context *ctx) {
static duk_ret_t my_getter(duk_context *ctx) {
const char *key;
/* There are no positional arguments for the getter. */

Loading…
Cancel
Save