summary refs log tree commit diff
path: root/lib/strings.nix
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/strings.nix
parentb9bd555c9282625a09602f98f745e38f3d2ef2f7 (diff)
downloadnixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.tar
nixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.tar.gz
nixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.tar.bz2
nixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.tar.lz
nixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.tar.xz
nixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.tar.zst
nixpkgs-2697a777e7a34f94f02017c47fa73104d7efcdd5.zip
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/strings.nix')
-rw-r--r--lib/strings.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index fbb48dec92a..2fd8479290d 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}";