ch10: rephrasing of sentence in first paragraph

Original phrasing is ambiguous in a way it could be initially interpreted as
we don't need to know when we are writing and compiling the code.
This commit is contained in:
Luis de Bethencourt
2017-05-06 14:27:50 +01:00
parent ba21cd0b7b
commit bfcec0720f

View File

@@ -2,10 +2,10 @@
Every programming language has tools to deal effectively with duplication of
concepts; in Rust, one of those tools is *generics*. Generics are abstract
stand-ins for concrete types or other properties. We can express properties of
generics, such as their behavior or how they relate to other generics, without
needing to know when we're writing and compiling the code what will actually be
in their place.
stand-ins for concrete types or other properties. When we're writing and
compiling the code we can express properties of generics, such as their
behavior or how they relate to other generics, without needing to know what
will actually be in their place.
In the same way that a function takes parameters whose value we don't know in
order to write code once that will be run on multiple concrete values, we can