Skip to content

Commit 8d6787e

Browse files
authored
Improve tip readability in Motivation + Samples (#632)
1 parent f52aa56 commit 8d6787e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/generics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Utility {
107107
}
108108
```
109109

110-
> TIP: You can call the generic parameter whatever you want. It is conventional to use `T`, `U`, `V` when you have simple generics. If you have more than one generic argument try to use meaningful names e.g. `TKey` and `TValue` (conventional to prefix with `T` as generics are also called *templates* in other languages e.g. C++).
110+
> TIP: You can call the generic parameter whatever you want. It is conventional to use `T`, `U`, or `V` when you have simple generics. If you have more than one generic argument try to use meaningful names like `TKey` and `TValue`. The convention is to prefix with `T` because generics are also called *templates* in other languages like C++.
111111
112112

113113
### Design Pattern: Convenience generic

0 commit comments

Comments
 (0)