From 9d083169f6e55c3e4bf19fea5c752ca672e77308 Mon Sep 17 00:00:00 2001 From: mocos <130593875+MoXcz@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:56:30 -0600 Subject: [PATCH] fix typo --- docs/starting-out.html | 2 +- markdown/generated_html/starting-out.html | 2 +- markdown/source_md/starting-out.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/starting-out.html b/docs/starting-out.html index e260c1b..fec998e 100644 --- a/docs/starting-out.html +++ b/docs/starting-out.html @@ -245,7 +245,7 @@
[1,2,3] is actually just syntactic sugar for 1:2:3:[]. [] is an empty list. If we prepend 3 to it, it becomes [3]. If we prepend 2 to that, it becomes [2,3], and so on.
-Note: [], [[]] and[[],[],[]] are all different things. The first one is an empty list, the seconds one is a list that contains one empty list, the third one is a list that contains three empty lists.
+Note: [], [[]] and[[],[],[]] are all different things. The first one is an empty list, the second one is a list that contains one empty list, the third one is a list that contains three empty lists.
If you want to get an element out of a list by index, use !!. The indices start at 0.
ghci> "Steve Buscemi" !! 6 diff --git a/markdown/generated_html/starting-out.html b/markdown/generated_html/starting-out.html index d36a4d3..b21f75a 100644 --- a/markdown/generated_html/starting-out.html +++ b/markdown/generated_html/starting-out.html @@ -325,7 +325,7 @@An intro to lists
Note:
[]
,[[]]
and[[],[],[]]
are all different things. The first one is an -empty list, the seconds one is a list that contains one empty list, the +empty list, the second one is a list that contains one empty list, the third one is a list that contains three empty lists.If you want to get an element out of a list by index, use diff --git a/markdown/source_md/starting-out.md b/markdown/source_md/starting-out.md index 0bdc97f..2e2a957 100644 --- a/markdown/source_md/starting-out.md +++ b/markdown/source_md/starting-out.md @@ -338,7 +338,7 @@ If we prepend `2` to that, it becomes `[2,3]`, and so on. ::: {.hintbox} **Note:** `[]`, `[[]]` and`[[],[],[]]` are all different things. -The first one is an empty list, the seconds one is a list that contains one empty list, the third one is a list that contains three empty lists. +The first one is an empty list, the second one is a list that contains one empty list, the third one is a list that contains three empty lists. ::: If you want to get an element out of a list by index, use `!!`.