1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-17 21:49:22 +01:00

whitespace typo, fix #989

This commit is contained in:
Nolan Prescott 2015-03-10 15:35:00 -05:00
parent 2ae3d41c27
commit 394e7ecb84

View File

@ -46,7 +46,7 @@ function bigHorribleAlert(): void {
var f1 = function(i: number) : number { return i * i; }
// Return type inferred
var f2 = function(i: number) { return i * i; }
var f3 = (i : number) : number => { return i * i; }
var f3 = (i: number) : number => { return i * i; }
// Return type inferred
var f4 = (i: number) => { return i * i; }
// Return type inferred, one-liner means no return keyword needed