Skip to content

Commit 4ead95c

Browse files
committed
Fix documentation example on JS library to include the explicit 'void' when declaring a function on JS side.
1 parent 9d6a73b commit 4ead95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/source/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ As a simple example, consider the case where you have some C code like this:
335335

336336
.. code-block:: c
337337
338-
extern void my_js();
338+
extern void my_js(void);
339339
340340
int main() {
341341
my_js();

0 commit comments

Comments
 (0)