From d8d57a5ad2db38df6fc665c13d86ad253cf78ae2 Mon Sep 17 00:00:00 2001 From: David Henley Date: Mon, 23 Sep 2019 15:48:40 -0500 Subject: [PATCH] More code fixes / typos --- chapters/More on Functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); ```