summary refs log tree commit diff
path: root/lib/strings.nix
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gmail.com>2020-12-04 19:35:27 +0000
committerAlex Brandt <alunduil@gmail.com>2020-12-04 19:35:27 +0000
commit4a5cb363ae9cbbf6520fb0b403e84de144ecf83c (patch)
tree8fea956605557478c234898eb100c68070336f72 /lib/strings.nix
parentf4419dd9707119e4d4e1d0c5cc5743ca36a85ae2 (diff)
downloadnixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.tar
nixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.tar.gz
nixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.tar.bz2
nixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.tar.lz
nixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.tar.xz
nixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.tar.zst
nixpkgs-4a5cb363ae9cbbf6520fb0b403e84de144ecf83c.zip
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.
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 2fd8479290d..6d393145eee 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}";