summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gmail.com>2020-12-03 18:50:14 +0000
committerAlex Brandt <alunduil@gmail.com>2020-12-03 18:50:14 +0000
commit2697a777e7a34f94f02017c47fa73104d7efcdd5 (patch)
treece1fb708d8538550e72644bb8f9eed16a7d19704 /lib
parentb9bd555c9282625a09602f98f745e38f3d2ef2f7 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/strings.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index fbb48dec92af..2fd8479290d2 100644
--- a/lib/strings.nix
+++ b/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}";