We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d78ffd commit dd265b1Copy full SHA for dd265b1
idioms/coercion-arguments.md
@@ -14,7 +14,7 @@ Such as `&str` over `&String`, `&[T]` over `&Vec<T>`, or `&T` over `&Box<T>`.
14
Using borrowed types you can avoid layers of indirection for those instances
15
where the owned type already provides a layer of indirection. For instance, a
16
`String` has a layer of indirection, so a `&String` will have two layers of
17
-indrection. We can avoid this by using `&str` instead, and letting `&String`
+indirection. We can avoid this by using `&str` instead, and letting `&String`
18
coerce to a `&str` whenever the function is invoked.
19
20
## Example
0 commit comments