microsoft / TypeScript-New-Handbook

Incubation repository for the new TypeScript handbook 🐣
MIT License
649 stars 27 forks source link

Typo in Inference example comment #20

Open yom-ko opened 4 years ago

yom-ko commented 4 years ago

Here: https://microsoft.github.io/TypeScript-New-Handbook/everything/#inference the comment reads:

// Parameter 'n' is of type 'number' // 'parsed' is of type 'string[]'

should be the other way around:

// Parameter 'n' is of type 'string' // 'parsed' is of type 'number[]'