From 3e2dab54139b843a1a4e6da3ceccfa371dba0a8b Mon Sep 17 00:00:00 2001 From: Alex Vig Date: Thu, 5 Oct 2017 13:27:06 -0400 Subject: [PATCH] Removed ambiguity --- second-edition/src/ch17-02-trait-objects.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/second-edition/src/ch17-02-trait-objects.md b/second-edition/src/ch17-02-trait-objects.md index d3535181a..55bc79313 100644 --- a/second-edition/src/ch17-02-trait-objects.md +++ b/second-edition/src/ch17-02-trait-objects.md @@ -349,9 +349,9 @@ keeps track of the code that might be used when a method is called and figures out at runtime which code needs to be used for a particular method call. This is known as *dynamic dispatch*, and there’s a runtime cost when this lookup happens. Dynamic dispatch also prevents the compiler from choosing to inline a -method’s code, which prevents some optimizations. We did get extra flexibility -in the code that we wrote and were able to support, though, so it’s a tradeoff -to consider. +method’s code which in turn prevents some optimizations. We did get extra +flexibility in the code that we wrote and were able to support, though, so it’s +a tradeoff to consider. ### Object Safety is Required for Trait Objects