Skip to content

Commit

Permalink
Update val.h.rst (#21449)
Browse files Browse the repository at this point in the history
Update typo in EM_ASYNC_JS code sample
  • Loading branch information
patrickkettner committed Feb 28, 2024
1 parent 6105e76 commit e1b138a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/source/docs/api_reference/val.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Guide material for this class can be found in :ref:`embind-val-guide`.

.. code:: cpp
EM_ASYNC_JS(EM_VAL, fetch_json_from_url, (const char *url_ptr), {
EM_ASYNC_JS(EM_VAL, fetch_json_from_url, (const char *url), {
var url = UTF8ToString(url);
var response = await fetch(url);
var json = await response.json();
Expand Down

0 comments on commit e1b138a

Please sign in to comment.