diff options
author | Alex Brandt <alunduil@gmail.com> | 2020-12-03 18:50:14 +0000 |
---|---|---|
committer | Alex Brandt <alunduil@gmail.com> | 2020-12-03 18:50:14 +0000 |
commit | 2697a777e7a34f94f02017c47fa73104d7efcdd5 (patch) | |
tree | ce1fb708d8538550e72644bb8f9eed16a7d19704 | |
parent | b9bd555c9282625a09602f98f745e38f3d2ef2f7 (diff) | |
download | nixpkgs-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.
-rw-r--r-- | lib/strings.nix | 4 |
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}"; |