From dca0dfdc29d8f3252c3787c2af5ba75e6466b4d5 Mon Sep 17 00:00:00 2001 From: alsotang Date: Thu, 16 Dec 2021 23:10:24 +0800 Subject: [PATCH] Update coercion-arguments.md (#286) align the type --- idioms/coercion-arguments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idioms/coercion-arguments.md b/idioms/coercion-arguments.md index b6f5893..caa37c9 100644 --- a/idioms/coercion-arguments.md +++ b/idioms/coercion-arguments.md @@ -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` versus using a `&[T]` or using a `&T` versus a `&Box`. +`&Vec` versus using a `&[T]` or using a `&Box` 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