Merge pull request #105906 from alunduil/withFeatureAs

lib/strings: fix typo in example
This commit is contained in:
Sandro 2020-12-04 20:53:07 +01:00 committed by GitHub
commit a048b716c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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