Skip to content

Commit dd265b1

Browse files
authored
Fix typo ('indrection' to 'indirection') (#218)
1 parent 4d78ffd commit dd265b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idioms/coercion-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Such as `&str` over `&String`, `&[T]` over `&Vec<T>`, or `&T` over `&Box<T>`.
1414
Using borrowed types you can avoid layers of indirection for those instances
1515
where the owned type already provides a layer of indirection. For instance, a
1616
`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`
17+
indirection. We can avoid this by using `&str` instead, and letting `&String`
1818
coerce to a `&str` whenever the function is invoked.
1919

2020
## Example

0 commit comments

Comments
 (0)