diff options
author | Alex Brandt <alunduil@gmail.com> | 2020-11-30 20:56:33 +0000 |
---|---|---|
committer | Alex Brandt <alunduil@gmail.com> | 2020-11-30 20:56:33 +0000 |
commit | 195fe01e8bd258b5f4475203c9fd72b69c87a22f (patch) | |
tree | caf42ef2dbdb48392f276c7e5bfcfdea55b33875 /doc | |
parent | f2ea4d951fcbf301d6bed91a0bcf4ca03026b790 (diff) |
nixos/nixpkgs/docs: fix typo in assertOneOf example
This example was confusing at first because the element the message indicated wasn't in the list of possible values was but the possible values didn't match up either. This ensures the example is consistent with the logic being presented.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/functions/library/asserts.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/functions/library/asserts.xml b/doc/functions/library/asserts.xml index 10891039e8696..7c94222ef139e 100644 --- a/doc/functions/library/asserts.xml +++ b/doc/functions/library/asserts.xml @@ -103,7 +103,7 @@ stderr> assert failed <title>Ensuring a user provided a possible value</title> <programlisting><![CDATA[ let sslLibrary = "bearssl"; -in lib.asserts.assertOneOf "sslLibrary" sslLibrary [ "openssl" "bearssl" ]; +in lib.asserts.assertOneOf "sslLibrary" sslLibrary [ "openssl" "libressl" ]; => false stderr> trace: sslLibrary must be one of "openssl", "libressl", but is: "bearssl" ]]></programlisting> |