diff --git a/common-docs/javascript/generics.md b/common-docs/javascript/generics.md index f812b55873f7..cdc2acd2bbd9 100644 --- a/common-docs/javascript/generics.md +++ b/common-docs/javascript/generics.md @@ -131,7 +131,7 @@ function identity(arg: T): T { return arg; } -let myIdentity: (arg: U) => U = identity; +let myIdentity: (arg: V) => V = identity; ``` We can also write the generic type as a call signature of an object literal type: