Skip to content

Commit 8de2829

Browse files
authored
Fix typo
1 parent da5f020 commit 8de2829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ loggingIdentity({length: 10, value: 3});
270270

271271
You can declare a type parameter that is constrained by another type parameter.
272272
For example, here we'd like to get a property from an object given its name.
273-
We'd like to ensure that we're not accidentally grapping a property that does not exist on the `obj`, so we'll place a constraint between the two types:
273+
We'd like to ensure that we're not accidentally grabbing a property that does not exist on the `obj`, so we'll place a constraint between the two types:
274274

275275
```ts
276276
function getProperty<T, K extends keyof T>(obj: T, key: K) {

0 commit comments

Comments
 (0)