book: remove a sentence that is not clear
This commit is contained in:
parent
20cf4cf62c
commit
e305674945
@ -1,8 +1,8 @@
|
||||
% Generics
|
||||
|
||||
Sometimes, when writing a function or data type, we may want it to work for
|
||||
multiple types of arguments. Luckily, Rust has a feature that gives us a better
|
||||
way: generics. Generics are called ‘parametric polymorphism’ in type theory,
|
||||
multiple types of arguments. In Rust, we can do this with generics.
|
||||
Generics are called ‘parametric polymorphism’ in type theory,
|
||||
which means that they are types or functions that have multiple forms (‘poly’
|
||||
is multiple, ‘morph’ is form) over a given parameter (‘parametric’).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user