Skip to content

Commit e0dbf23

Browse files
committed
Grammar: change "object's" to "an object's" and add commas
Also change "parameterized" to "parameterised" to follow the British spelling convention used elsewhere.
1 parent 8bec5d0 commit e0dbf23

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
@@ -16,7 +16,7 @@ The terminology can get a bit confusing at this point, and we use the phrase
1616
"higher order function" for both methods and functions that take functions as parameters
1717
or that return a function.
1818

19-
In a pure Object Oriented world a good practice is to avoid exposing methods parameterized with functions that might leak object's internal state. Leaking internal state might break the invariants of the object itself thus violating encapsulation.
19+
In a pure Object Oriented world, a good practice is to avoid exposing methods parameterised with functions that might leak an object's internal state. Leaking internal state might break the invariants of the object itself, thus violating encapsulation.
2020

2121
One of the most common examples is the higher-order
2222
function `map` which is available for collections in Scala.

0 commit comments

Comments
 (0)