Skip to content

Commit a51f437

Browse files
Merge pull request #2780 from kennethy/patch-1
Update ch15-02-deref.md
2 parents b0f0250 + 1a84ecd commit a51f437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch15-02-deref.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Listing 15-9.
185185
and methods. Deref coercion works only on types that implement the `Deref`
186186
trait. Deref coercion converts such a type into a reference to another type.
187187
For example, deref coercion can convert `&String` to `&str` because `String`
188-
implements the `Deref` trait such that it returns `str`. Deref coercion happens
188+
implements the `Deref` trait such that it returns `&str`. Deref coercion happens
189189
automatically when we pass a reference to a particular type’s value as an
190190
argument to a function or method that doesn’t match the parameter type in the
191191
function or method definition. A sequence of calls to the `deref` method

0 commit comments

Comments
 (0)