Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 56a962c

Browse files
committedJun 25, 2024
Format map as code
1 parent e0dbf23 commit 56a962c

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
@@ -51,7 +51,7 @@ val newSalaries = salaries.map(x => x * 2) // List(40000, 140000, 80000)
5151
{% endtabs %}
5252

5353
Notice how `x` is not declared as an Int in the above example. That's because the
54-
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:
54+
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:
5555

5656
{% tabs map_example_3 %}
5757

0 commit comments

Comments
 (0)
Please sign in to comment.