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.
commit195fe01e8bd258b5f4475203c9fd72b69c87a22f
authorAlex Brandt <alunduil@gmail.com>
dateMon 30 Nov 2020, 20:56 (6 years ago)
parentf2ea4d9
doc/functions/library/asserts.xml+1−1
@@ -103,7 +103,7 @@ stderr> assert failed
103103 <title>Ensuring a user provided a possible value</title>
104104<programlisting><![CDATA[
105105let sslLibrary = "bearssl";
106−in lib.asserts.assertOneOf "sslLibrary" sslLibrary [ "openssl" "bearssl" ];
106+in lib.asserts.assertOneOf "sslLibrary" sslLibrary [ "openssl" "libressl" ];
107107=> false
108108stderr> trace: sslLibrary must be one of "openssl", "libressl", but is: "bearssl"
109109 ]]></programlisting>