Skip to content

[clang][docs] Fix typos concerning wasm __funcref #124365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clang/docs/LanguageExtensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,7 @@ with the current table size.
.. code-block:: c++

typedef void (*__funcref funcref_t)();
static __funcref table[0];
static funcref_t table[0];

size_t getSize() {
return __builtin_wasm_table_size(table);
Expand All @@ -2654,10 +2654,10 @@ or -1. It will return -1 if not enough space could be allocated.
.. code-block:: c++

typedef void (*__funcref funcref_t)();
static __funcref table[0];
static funcref_t table[0];

// grow returns the new table size or -1 on error.
int grow(__funcref fn, int delta) {
int grow(funcref_t fn, int delta) {
int prevSize = __builtin_wasm_table_grow(table, fn, delta);
if (prevSize == -1)
return -1;
Expand Down
Loading