From b3a901593fb4b19841f7655eb7a3768511f2f36c Mon Sep 17 00:00:00 2001 From: Christian Oeien Date: Sun, 13 Oct 2019 14:24:50 -0500 Subject: [PATCH] Confusing and long sentence --- src/conversion/string.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conversion/string.md b/src/conversion/string.md index 9ced198155..ab1452153a 100644 --- a/src/conversion/string.md +++ b/src/conversion/string.md @@ -29,9 +29,9 @@ fn main() { ## Parsing a String One of the more common types to convert a string into is a number. The idiomatic -approach to this is to use the [`parse`] function and provide the type for the -function to parse the string value into, this can be done either without type -inference or using the 'turbofish' syntax. +approach to this is to use the [`parse`] function and either to arrange for +type inference or to specify the type to parse using the 'turbofish' syntax. +Both alternatives are shown in the following example. This will convert the string into the type specified so long as the [`FromStr`] trait is implemented for that type. This is implemented for numerous types