diff --git a/chapters/More on Functions.md b/chapters/More on Functions.md index a98b3cb..723bbab 100644 --- a/chapters/More on Functions.md +++ b/chapters/More on Functions.md @@ -128,8 +128,8 @@ function map(arr: E[], func: (arg: E) => O): O[] { return arr.map(func); } -// Parameter 'n' is of type 'number' -// 'parsed' is of type 'string[]' +// Parameter 'n' is of type 'string' +// 'parsed' is of type 'number[]' const parsed = map(["1", "2", "3"], n => parseInt(n)); ```