File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ reduce duplication but also specify to the compiler that we want the generic
610
610
type to have particular behavior. The compiler can then use the trait bound
611
611
information to check that all the concrete types used with our code provide the
612
612
correct behavior. In dynamically typed languages, we would get an error at
613
- runtime if we called a method on a type that the type didn’t implement. But
613
+ runtime if we called a method on a type which didn’t implement the method . But
614
614
Rust moves these errors to compile time so we’re forced to fix the problems
615
615
before our code is even able to run. Additionally, we don’t have to write code
616
616
that checks for behavior at runtime because we’ve already checked at compile
You can’t perform that action at this time.
0 commit comments