Skip to content

Commit

Permalink
minor typo fix (#32328)
Browse files Browse the repository at this point in the history
typo fix
  • Loading branch information
hanyujie2002 authored Feb 18, 2024
1 parent 9f59a93 commit b64690b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ Our stores have already been ported to TypeScript, but we can do better. We shou
### Understanding TypeScript generics
Generics allow us to create reusable code components that work with a variety of types instead of a single type. They can be applied to interfaces, classes, and functions. Generic types are passed as parameters using a special syntax: they are specified between angle brackets, and by convention are denoted with an upper-cased single char letter. Generic types allows us to capture the types provided by the user to be used later.
Generics allow us to create reusable code components that work with a variety of types instead of a single type. They can be applied to interfaces, classes, and functions. Generic types are passed as parameters using a special syntax: they are specified between angle brackets, and by convention are denoted with an upper-cased single char letter. Generic types allow us to capture the types provided by the user to be used later.
Let's see a quick example, a simple `Stack` class that lets us `push` and `pop` elements, like this:
Expand Down

0 comments on commit b64690b

Please sign in to comment.