microsoft / TypeScript-Handbook

Deprecated, please use the TypeScript-Website repo instead
https://github.com/microsoft/TypeScript-Website
Apache License 2.0
4.88k stars 1.13k forks source link

Renaming `function f<T>` to `function foo<T>` #1256

Closed JulianG closed 4 years ago

JulianG commented 4 years ago

I was reading this page and I believe the function name in the declaration should be foo to match the implementation and the following paragraph.

orta commented 4 years ago

I don't think it is meant to (see how f() gets called later) - though having the two functions. so closely names is an anti-pattern, I'd totally take a PR which changes the name of that declare and internal function call though!

JulianG commented 4 years ago

oh! absolutely! I totally missed that! sorry!