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:
Alex Brandt 2020-12-04 19:35:27 +00:00
parent f4419dd970
commit 4a5cb363ae

View File

@ -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}";