Skip to content

Commit

Permalink
[syntax-typos]: Fixed small syntax typos in the instruction. (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimaDovakin authored Oct 29, 2024
1 parent 7e8b253 commit 41693f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/concept/magician-in-training/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ To make things a bit easier she only uses the cards 1 to 10.
Implement the `getCard` function that returns the card at position `index` from the given deck. If the index is not in the deck, return Nothing.

```elm
getCard 2, ( Array.fromList [ 1, 2, 4, 1 ] )
getCard 2 ( Array.fromList [ 1, 2, 4, 1 ] )
--> Just 4
getCard 6, ( Array.fromList [ 1, 2, 4, 1 ] )
getCard 6 ( Array.fromList [ 1, 2, 4, 1 ] )
--> Nothing
```

Expand All @@ -21,9 +21,9 @@ Implement the `setCard` function that returns a deck with the card at position `
If the `index` is not in the deck, return the original deck.

```elm
setCard 2, 6, ( Array.fromList [ 1, 2, 4, 1 ] )
setCard 2 6 ( Array.fromList [ 1, 2, 4, 1 ] )
--> Array.fromList [ 1, 2, 6, 1 ]
setCard 6, 6, ( Array.fromList [ 1, 2, 4, 1 ] )
setCard 6 6 ( Array.fromList [ 1, 2, 4, 1 ] )
--> Array.fromList [ 1, 2, 4, 1 ]
```

Expand Down

0 comments on commit 41693f0

Please sign in to comment.