projects
/
rust_exercises.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2be52f
)
Add missing word (#45)
author
Onè
<43485962+c-git@users.noreply.github.com>
Fri, 24 May 2024 08:28:27 +0000
(
04:28
-0400)
committer
GitHub
<noreply@github.com>
Fri, 24 May 2024 08:28:27 +0000
(10:28 +0200)
book/src/04_traits/05_trait_bounds.md
patch
|
blob
|
history
diff --git
a/book/src/04_traits/05_trait_bounds.md
b/book/src/04_traits/05_trait_bounds.md
index
0f2e72c
..
af1808b
100644
(file)
--- a/
book/src/04_traits/05_trait_bounds.md
+++ b/
book/src/04_traits/05_trait_bounds.md
@@
-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)