Skip to content

Commit e1b138a

Browse files
Update val.h.rst (#21449)
Update typo in EM_ASYNC_JS code sample
1 parent 6105e76 commit e1b138a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/source/docs/api_reference/val.h.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Guide material for this class can be found in :ref:`embind-val-guide`.
133133

134134
.. code:: cpp
135135
136-
EM_ASYNC_JS(EM_VAL, fetch_json_from_url, (const char *url_ptr), {
136+
EM_ASYNC_JS(EM_VAL, fetch_json_from_url, (const char *url), {
137137
var url = UTF8ToString(url);
138138
var response = await fetch(url);
139139
var json = await response.json();

0 commit comments

Comments
 (0)