Skip to content

Commit 2508da6

Browse files
authored
[clang][docs] Fix typos concerning wasm __funcref
1 parent e2005d1 commit 2508da6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ with the current table size.
26322632
.. code-block:: c++
26332633
26342634
typedef void (*__funcref funcref_t)();
2635-
static __funcref table[0];
2635+
static funcref_t table[0];
26362636
26372637
size_t getSize() {
26382638
return __builtin_wasm_table_size(table);
@@ -2654,10 +2654,10 @@ or -1. It will return -1 if not enough space could be allocated.
26542654
.. code-block:: c++
26552655
26562656
typedef void (*__funcref funcref_t)();
2657-
static __funcref table[0];
2657+
static funcref_t table[0];
26582658
26592659
// grow returns the new table size or -1 on error.
2660-
int grow(__funcref fn, int delta) {
2660+
int grow(funcref_t fn, int delta) {
26612661
int prevSize = __builtin_wasm_table_grow(table, fn, delta);
26622662
if (prevSize == -1)
26632663
return -1;

0 commit comments

Comments
 (0)