Skip to content

Commit

Permalink
Fix typos in Excercise5
Browse files Browse the repository at this point in the history
  • Loading branch information
s-macke committed Nov 6, 2023
1 parent f698212 commit 72465fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/exercises/Exercise5.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ E.g.

```go
notDigit := func .....
array := []strings{"a", "b3b", "c", "12", "D"}
result := Filter(strings, notDigit)
array := []string{"a", "b3b", "c", "12", "D"}
result := Filter(array, notDigit)
fmt.Println(result) // "a", "c", "D"
```

Expand All @@ -65,8 +65,8 @@ E.g.

```go
toUppercase := func .....
array := []strings{"eVeRyThInG", "uPpErCaSe"}
result := Map(strings, toUppercase)
array := []string{"eVeRyThInG", "uPpErCaSe"}
result := Map(array, toUppercase)
fmt.Println(result) // "EVERYTHING", "UPPERCASE"
```

Expand All @@ -82,8 +82,8 @@ the second is the current element of the array.
concat := func concat(a string, b string) string {
return a + "," + b
}
array := []strings{"a", "b", "c", "d"}
result := Reduce(strings, concat)
array := []string{"a", "b", "c", "d"}
result := Reduce(array, concat)
fmt.Println(result) // "a,b,c,d"
```

Expand Down

0 comments on commit 72465fa

Please sign in to comment.