Skip to content

Commit 62f9255

Browse files
committed
functional/stateful-types.md: small wording tweak
1 parent ccddeab commit 62f9255

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

functional/stateful-types.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ In C++ and Java, for example, generic types a meta-programming construct for the
1010
compiler. A `Vec<int>` and `Vec<char>` in C++ are just two different copies of
1111
the same boilerplate code for a `Vec` type, with two different types filled in.
1212

13-
In Rust, the generic type parameter creates what is known as a "type class", and
14-
each value used by an end user *actually changes the type of each instatiation*.
15-
In other words, `Vec<usize>` and `Vec<char>` *are two different types*.
13+
In Rust, the generic type parameter creates what is known as a "type class
14+
constraint", and each value used by an end user *actually changes the type of
15+
each instatiation*. In other words, `Vec<usize>` and `Vec<char>` *are two
16+
different types*.
1617

1718
This is why `impl` blocks must specify generic parameters: different ones can
1819
have different `impl` blocks on them.

0 commit comments

Comments
 (0)