From e0d438746cdea96d7770d69c2db2dd3a55904949 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 18 Apr 2022 11:56:07 +0200 Subject: [PATCH] Fix funptr examples --- docs/Overview/Keywords.mdr | 2 +- docs/Reference/Functions/Lambdas.mdr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.43.0