From a8dfed1c5d29bb4e5bc99198f8a066230aa3515f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Sun, 3 Dec 2023 20:00:48 +0000 Subject: [PATCH] spelling --- source/nix-language/lists.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/nix-language/lists.adoc b/source/nix-language/lists.adoc index d0a13f7..0780dcb 100644 --- a/source/nix-language/lists.adoc +++ b/source/nix-language/lists.adoc @@ -21,7 +21,7 @@ Testing if an element appears in a list. [source] .... -nix-repl> fruit = [ "apple" "banana" "canteloupe" ] +nix-repl> fruit = [ "apple" "banana" "cantaloupe" ] nix-repl> builtins.elem "apple" fruit true @@ -39,7 +39,7 @@ nix-repl> builtins.elemAt fruit 0 "apple" nix-repl> builtins.elemAt fruit 2 -"canteloupe" +"cantaloupe" .... Determining the number of elements in a list. @@ -63,7 +63,7 @@ Dropping the first element of a list. [source] .... nix-repl> builtins.tail fruit -[ "banana" "canteloupe" ] +[ "banana" "cantaloupe" ] .... Functions are useful for working with lists.