lib/strings: fix examples for enableFeatureAs

The As was missing in the examples on this library function.  This will
ensure the examples refer to the function they document.
This commit is contained in:
Alex Brandt 2020-12-03 18:50:14 +00:00
parent b9bd555c92
commit 2697a777e7

View File

@ -569,9 +569,9 @@ rec {
standard GNU Autoconf scripts.
Example:
enableFeature true "shared" "foo"
enableFeatureAs true "shared" "foo"
=> "--enable-shared=foo"
enableFeature false "shared" (throw "ignored")
enableFeatureAs false "shared" (throw "ignored")
=> "--disable-shared"
*/
enableFeatureAs = enable: feat: value: enableFeature enable feat + optionalString enable "=${value}";