mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
lib/strings: fix examples for enableFeatureAs
The As was missing in the examples on this library function. This will ensure the examples refer to the function they document.
This commit is contained in:
parent
b9bd555c92
commit
2697a777e7
@ -569,9 +569,9 @@ rec {
|
||||
standard GNU Autoconf scripts.
|
||||
|
||||
Example:
|
||||
enableFeature true "shared" "foo"
|
||||
enableFeatureAs true "shared" "foo"
|
||||
=> "--enable-shared=foo"
|
||||
enableFeature false "shared" (throw "ignored")
|
||||
enableFeatureAs false "shared" (throw "ignored")
|
||||
=> "--disable-shared"
|
||||
*/
|
||||
enableFeatureAs = enable: feat: value: enableFeature enable feat + optionalString enable "=${value}";
|
||||
|
Loading…
Reference in New Issue
Block a user