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.
pull/10189/merge
Marvin Scholz 4 months ago committed by Jussi Pakkanen
parent 839fef4a71
commit fec6cf6d26
  1. 2
      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

Loading…
Cancel
Save