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.
wip/yesman
Alex Brandt 4 years ago
parent b9bd555c92
commit 2697a777e7
  1. 4
      lib/strings.nix

@ -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}";

Loading…
Cancel
Save