mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Add missing word (#45)
This commit is contained in:
parent
d2be52f32f
commit
20ff3a1743
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ The duplication remains.
|
|||
## Generic programming
|
||||
|
||||
We can do better using **generics**.
|
||||
Generics allow us to write that works with a **type parameter** instead of a concrete type:
|
||||
Generics allow us to write code that works with a **type parameter** instead of a concrete type:
|
||||
|
||||
```rust
|
||||
fn print_if_even<T>(n: T)
|
||||
|
|
Loading…
Reference in a new issue