Skip to content

Commit

Permalink
Update coercion-arguments.md (rust-unofficial#286)
Browse files Browse the repository at this point in the history
align the type
  • Loading branch information
alsotang authored Dec 16, 2021
1 parent 11a0a13 commit dca0dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idioms/coercion-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ coerce to a `&str` whenever the function is invoked.

For this example, we will illustrate some differences for using `&String` as a
function argument versus using a `&str`, but the ideas apply as well to using
`&Vec<T>` versus using a `&[T]` or using a `&T` versus a `&Box<T>`.
`&Vec<T>` versus using a `&[T]` or using a `&Box<T>` versus a `&T`.

Consider an example where we wish to determine if a word contains three
consecutive vowels. We don't need to own the string to determine this, so we
Expand Down

0 comments on commit dca0dfd

Please sign in to comment.