From fec6cf6d267ebd7f14e6a1ad78cfa418fd0c68dd Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Mon, 5 Aug 2024 20:52:55 +0200 Subject: docs: fix example for feature.require The example incorrectly uses `then` after the if condition, which is incorrect meson syntax as meson does not support a `then` keyword. --- docs/yaml/objects/feature.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/yaml/objects') diff --git a/docs/yaml/objects/feature.yaml b/docs/yaml/objects/feature.yaml index 3e0ae69df..fad6cd5e7 100644 --- a/docs/yaml/objects/feature.yaml +++ b/docs/yaml/objects/feature.yaml @@ -89,7 +89,7 @@ methods: ``` if get_option('directx').require(host_machine.system() == 'windows', - error_message: 'DirectX only available on Windows').allowed() then + error_message: 'DirectX only available on Windows').allowed() src += ['directx.c'] config.set10('HAVE_DIRECTX', true) endif -- cgit v1.2.3