added missing s (#30795)

This commit is contained in:
timrayle
2019-01-18 15:40:17 -08:00
committed by Tom
parent e86f606132
commit b90a9b54a2

View File

@ -79,7 +79,7 @@ In the above program,
- The outer function is operate(), with return value of type Function (Int,Int) -> Int.
and the inner (nested) functions are add() and subtract().
- The nested function add() and subtract() in a way are being used outside of the enclosing function operate(). This is possible because the outer function returns one of these functions.
- The nested functions add() and subtract() in a way are being used outside of the enclosing function operate(). This is possible because the outer function returns one of these functions.
We've used the inner function outside the enclosing function operate() as operation(2, 3). The program internally calls add(2, 3) which outputs 5 in the console.