From 4a5cb363ae9cbbf6520fb0b403e84de144ecf83c Mon Sep 17 00:00:00 2001 From: Alex Brandt Date: Fri, 4 Dec 2020 19:35:27 +0000 Subject: lib/strings: fix typo in example The example refers to a snake_case function name but Nix uses camelCase function names. This ensures the example is correct for the given function. --- lib/strings.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/strings.nix b/lib/strings.nix index 2fd8479290d2..6d393145eee0 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -593,9 +593,9 @@ rec { standard GNU Autoconf scripts. Example: - with_Feature true "shared" "foo" + withFeatureAs true "shared" "foo" => "--with-shared=foo" - with_Feature false "shared" (throw "ignored") + withFeatureAs false "shared" (throw "ignored") => "--without-shared" */ withFeatureAs = with_: feat: value: withFeature with_ feat + optionalString with_ "=${value}"; -- cgit v1.2.3