Skip to content

Commit d2bd2fe

Browse files
authored
Update packages/documentation/copy/en/handbook-v2/Everyday Types.md
1 parent 90bd502 commit d2bd2fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/documentation/copy/en/handbook-v2/Everyday Types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ names.forEach((s) => {
156156

157157
Even though the parameter `s` didn't have a type annotation, TypeScript used the types of the `forEach` function, along with the inferred type of the array, to determine the type `s` will have.
158158

159-
This process is called _contextual typing_ because the _context_ that the function occurred informs what type it should have.
159+
This process is called _contextual typing_ because the _context_ that the function occurred within informs what type it should have.
160+
160161
Similar to the inference rules, you don't need to explicitly learn how this happens, but understanding that it _does_ happen can help you notice when type annotations aren't needed.
161162
Later, we'll see more examples of how the context that a value occurs in can affect its type.
162163

0 commit comments

Comments
 (0)