Skip to content

Commit b4b13d8

Browse files
committed
Remove comma splice and reword sentences to enhance clarity
1 parent cc526ea commit b4b13d8

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
@@ -187,7 +187,7 @@ object SalaryRaiser:
187187
The new method, `promotion`, takes the salaries plus a function of type `Double => Double`
188188
(i.e. a function that takes a Double and returns a Double) and returns the product.
189189

190-
Methods and functions usually express behaviours or data transformations, therefore having functions that compose based on other functions can help building generic mechanisms. Those generic operations defer to lock down the entire operation behaviour giving clients a way to control or further customize parts of the operation itself.
190+
Methods and functions usually express behaviours or data transformations. Therefore, having functions that compose based on other functions can allow us to build more generic mechanisms. Such generic operations avoid completely locking down their behaviour in order to give clients a way to control or further customize parts of those operations.
191191

192192
## Functions that return functions
193193

0 commit comments

Comments
 (0)