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.
|
standard GNU Autoconf scripts.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
with_Feature true "shared" "foo"
|
withFeatureAs true "shared" "foo"
|
||||||
=> "--with-shared=foo"
|
=> "--with-shared=foo"
|
||||||
with_Feature false "shared" (throw "ignored")
|
withFeatureAs false "shared" (throw "ignored")
|
||||||
=> "--without-shared"
|
=> "--without-shared"
|
||||||
*/
|
*/
|
||||||
withFeatureAs = with_: feat: value: withFeature with_ feat + optionalString with_ "=${value}";
|
withFeatureAs = with_: feat: value: withFeature with_ feat + optionalString with_ "=${value}";
|
||||||
|
|
Loading…
Reference in New Issue