summary refs log tree commit diff
path: root/doc/functions
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gmail.com>2020-11-30 20:56:33 +0000
committerAlex Brandt <alunduil@gmail.com>2020-11-30 20:56:33 +0000
commit195fe01e8bd258b5f4475203c9fd72b69c87a22f (patch)
treecaf42ef2dbdb48392f276c7e5bfcfdea55b33875 /doc/functions
parentf2ea4d951fcbf301d6bed91a0bcf4ca03026b790 (diff)
downloadnixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.tar
nixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.tar.gz
nixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.tar.bz2
nixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.tar.lz
nixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.tar.xz
nixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.tar.zst
nixpkgs-195fe01e8bd258b5f4475203c9fd72b69c87a22f.zip
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/functions')
-rw-r--r--doc/functions/library/asserts.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/functions/library/asserts.xml b/doc/functions/library/asserts.xml
index 10891039e86..7c94222ef13 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>