Update coercion-arguments.md (#286)

align the type
pull/287/head
alsotang 2 years ago committed by GitHub
parent 11a0a13dba
commit dca0dfdc29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save