We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0f0250 + 1a84ecd commit a51f437Copy full SHA for a51f437
src/ch15-02-deref.md
@@ -185,7 +185,7 @@ Listing 15-9.
185
and methods. Deref coercion works only on types that implement the `Deref`
186
trait. Deref coercion converts such a type into a reference to another type.
187
For example, deref coercion can convert `&String` to `&str` because `String`
188
-implements the `Deref` trait such that it returns `str`. Deref coercion happens
+implements the `Deref` trait such that it returns `&str`. Deref coercion happens
189
automatically when we pass a reference to a particular type’s value as an
190
argument to a function or method that doesn’t match the parameter type in the
191
function or method definition. A sequence of calls to the `deref` method
0 commit comments