Skip to content

Commit 8f33b5f

Browse files
return -> refer
Fixes microsoft/TypeScript#4248, thanks @tpdi!
1 parent c8887a1 commit 8f33b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function add(x, y) {
2222
var myAdd = function(x, y) { return x+y; };
2323
```
2424

25-
Just as in JavaScript, functions can return to variables outside of the function body.
25+
Just as in JavaScript, functions can refer to variables outside of the function body.
2626
When they do so, they're said to `capture` these variables.
2727
While understanding how this works, and the trade-offs when using this technique, are outside of the scope of this article, having a firm understanding how this mechanic is an important piece of working with JavaScript and TypeScript.
2828

0 commit comments

Comments
 (0)