3
0
Fork 0
forked from mirrors/nixpkgs

lib/options: fix showOption example

This commit is contained in:
Daiderd Jordan 2020-04-14 20:34:47 +02:00
parent 31a03daa72
commit 964700da44
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -191,7 +191,7 @@ rec {
Example:
(showOption ["foo" "bar" "baz"]) == "foo.bar.baz"
(showOption ["foo" "bar.baz" "tux"]) == "foo.\"bar.baz\".tux"
(showOption ["foo" "bar.baz" "tux"]) == "foo.bar.baz.tux"
Placeholders will not be quoted as they are not actual values:
(showOption ["foo" "*" "bar"]) == "foo.*.bar"