We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20cf4cf commit e305674Copy full SHA for e305674
src/doc/trpl/generics.md
@@ -1,8 +1,8 @@
1
% Generics
2
3
Sometimes, when writing a function or data type, we may want it to work for
4
-multiple types of arguments. Luckily, Rust has a feature that gives us a better
5
-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,
6
which means that they are types or functions that have multiple forms (‘poly’
7
is multiple, ‘morph’ is form) over a given parameter (‘parametric’).
8
0 commit comments