From: Jérémie Astor Date: Mon, 18 Apr 2022 09:56:07 +0000 (+0200) Subject: Fix funptr examples X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e0d438746cdea96d7770d69c2db2dd3a55904949;p=gwion.git Fix funptr examples --- diff --git a/docs/Overview/Keywords.mdr b/docs/Overview/Keywords.mdr index 6f3b33d7..ce04f4b7 100644 --- a/docs/Overview/Keywords.mdr +++ b/docs/Overview/Keywords.mdr @@ -22,7 +22,7 @@ * typeof * typedef - * funcdef + * funptr * class * dtor * extends diff --git a/docs/Reference/Functions/Lambdas.mdr b/docs/Reference/Functions/Lambdas.mdr index 86ba4210..445699dc 100644 --- a/docs/Reference/Functions/Lambdas.mdr +++ b/docs/Reference/Functions/Lambdas.mdr @@ -19,14 +19,14 @@ You can even use it to ### Passing to a function pointer ```gwion,editable -funcdef void fptr_t(int); +funptr void fptr_t(int); \ i { <<< "passed '", i, "'" >>>; } => var fptr_t fptr; fptr(4); ``` ### As Argument to Functions ```gwion,editable -funcdef void fptr_t(int); +funptr void fptr_t(int); fun void test(fptr_t fptr) { fptr(5); }