From fe4b6b12546357ff23f1cc543f13cdf36c4c4168 Mon Sep 17 00:00:00 2001 From: "Lasse R.H. Nielsen" Date: Tue, 19 Mar 2024 23:19:44 +0100 Subject: [PATCH] Update inference.md Typo. --- resources/type-system/inference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/type-system/inference.md b/resources/type-system/inference.md index 6159e990a..2f6b93180 100644 --- a/resources/type-system/inference.md +++ b/resources/type-system/inference.md @@ -379,7 +379,7 @@ one control path reaches the end of the block)_ let `T` be `null`. Then process relevant statements of the block, one by one in source order, to find a value type `V` for that statement. - - If the funtion literal is a non-`async` non-generator function, + - If the function literal is a non-`async` non-generator function, the relevant statements are `return;` or `return e;` statements. * For a `return;` statement, let `V` be `Null`. * For a `return e;` statement, let `V` be the inferred type of `e` with