File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Generics
2
2
3
3
Generics is the topic of generalizing types and functionalities to broader cases.
4
- This is extremely useful for reducing code duplication in many ways, but can call for rather involving syntax.
4
+ This is extremely useful for reducing code duplication in many ways, but can call for some rather involved syntax.
5
5
Namely, being generic requires taking great care to specify over which types a generic type is actually considered valid.
6
6
The simplest and most common use of generics is for type parameters.
7
7
Original file line number Diff line number Diff line change 13
13
// - Append "bar" to the string a specified amount of times
14
14
//
15
15
// The exact form of this will be:
16
- // - The input is going to be a vector of a 2-length tuple ,
16
+ // - The input is going to be a Vector of 2-length tuples ,
17
17
// the first element is the string, the second one is the command.
18
18
// - The output element is going to be a vector of strings.
19
19
You can’t perform that action at this time.
0 commit comments