We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65eb6c0 + e305674 commit 0d6f11bCopy full SHA for 0d6f11b
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