Skip to content

Commit

Permalink
Update inference.md
Browse files Browse the repository at this point in the history
Typo.
  • Loading branch information
lrhn authored Mar 19, 2024
1 parent 42dd5cf commit fe4b6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/type-system/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe4b6b1

Please sign in to comment.