Skip to content

Commit 16cb8f1

Browse files
authored
Add closing bracket to tour/high-order-functions
1 parent 35d60c0 commit 16cb8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/higher-order-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ val salaries = Seq(20000, 70000, 40000)
3535
val newSalaries = salaries.map(x => x * 2) // List(40000, 140000, 80000)
3636
```
3737
Notice how `x` is not declared as an Int in the above example. That's because the
38-
compiler can infer the type based on the type of function map expects (see [Currying](/tour/multiple-parameter-lists.html). An even more idiomatic way to write the same piece of code would be:
38+
compiler can infer the type based on the type of function map expects (see [Currying](/tour/multiple-parameter-lists.html)). An even more idiomatic way to write the same piece of code would be:
3939

4040
```scala mdoc:nest
4141
val salaries = Seq(20000, 70000, 40000)

0 commit comments

Comments
 (0)