mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
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.
This commit is contained in:
parent
f4419dd970
commit
4a5cb363ae
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user