summaryrefslogtreecommitdiff
path: root/docs/yaml
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2024-08-05 20:52:55 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2024-08-05 23:26:06 +0300
commitfec6cf6d267ebd7f14e6a1ad78cfa418fd0c68dd (patch)
tree09b61833ab81823f1a85362836b0da5745185fc7 /docs/yaml
parent839fef4a710ab15a6401c1a5f3e1cfbeae9c432c (diff)
downloadmeson-fec6cf6d267ebd7f14e6a1ad78cfa418fd0c68dd.tar.gz
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.
Diffstat (limited to 'docs/yaml')
-rw-r--r--docs/yaml/objects/feature.yaml2
1 files changed, 1 insertions, 1 deletions
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