From 2697a777e7a34f94f02017c47fa73104d7efcdd5 Mon Sep 17 00:00:00 2001 From: Alex Brandt Date: Thu, 3 Dec 2020 18:50:14 +0000 Subject: 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. --- lib/strings.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/strings.nix') 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}"; -- cgit 1.4.1