From f01b6f6341ed0f8d3abb0cee7879c0cb4d2a7b11 Mon Sep 17 00:00:00 2001 From: Nicolas Erni Date: Sat, 14 Oct 2023 01:25:16 +0200 Subject: [PATCH] Fix magician in training introduction (#612) * Fix import example * Fix link to default imports --- concepts/array/about.md | 4 ++-- concepts/array/introduction.md | 4 ++-- .../concept/magician-in-training/.docs/introduction.md | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/concepts/array/about.md b/concepts/array/about.md index 1efa8f5a..309d2044 100644 --- a/concepts/array/about.md +++ b/concepts/array/about.md @@ -6,7 +6,7 @@ There is no literal syntax for arrays (like there is for list), so instead the A For example, an `Array` with "a", "b" and "c" in it is usually shown as `Array.fromList ["a", "b", "c"]`. You will see this on console output, in the debugger, and other places like that. -Unlike `List` which is a [default-import][default import], the `Array` module must be explicity imported, using `import Array` or similar. +Unlike `List` which is a [default-import][default-imports], the `Array` module must be explicity imported, using `import Array` or similar. Type annotations for lists can be defined as follows @@ -18,7 +18,7 @@ Array Int --> an array of Int Arrays can be defined as follows: ```elm -import Array exposing Array +import Array exposing (Array) empty : Array Char empty = Array.empty diff --git a/concepts/array/introduction.md b/concepts/array/introduction.md index 13eb3781..10d83a84 100644 --- a/concepts/array/introduction.md +++ b/concepts/array/introduction.md @@ -2,12 +2,12 @@ An [`Array`][array] in Elm is a fast immutable collection of zero or more values of the same type. -Unlike `List` which is a [default-import][default import], the `Array` module must be explicity imported, using `import Array` or similar. +Unlike `List` which is a [default-import][default-imports], the `Array` module must be explicity imported, using `import Array` or similar. Arrays can be defined as follows: ```elm -import Array exposing Array +import Array exposing (Array) empty : Array Char empty = Array.empty diff --git a/exercises/concept/magician-in-training/.docs/introduction.md b/exercises/concept/magician-in-training/.docs/introduction.md index fe978257..19e33e59 100644 --- a/exercises/concept/magician-in-training/.docs/introduction.md +++ b/exercises/concept/magician-in-training/.docs/introduction.md @@ -4,12 +4,12 @@ An [`Array`][array] in Elm is a fast immutable collection of zero or more values of the same type. -Unlike `List` which is a [default-import][default import], the `Array` module must be explicity imported, using `import Array` or similar. +Unlike `List` which is a [default-import][default-imports], the `Array` module must be explicity imported, using `import Array` or similar. Arrays can be defined as follows: ```elm -import Array exposing Array +import Array exposing (Array) empty : Array Char empty = Array.empty @@ -33,7 +33,7 @@ oneToFour = Array.push 1 twoToFour --> Array.fromList [ 1, 2, 3, 4 ] An element in an Array is retrieved using `Array.get`: ```elm -sixSeven = Array.fromList [ 6, 7 ] +sixSeven = Array.fromList [ 6, 7 ] Array.get 0 sixSeven --> Just 6 ```