Skip to content

Commit ce9965b

Browse files
authored
Merge pull request #1282 from biotty/master
Confusing and long sentence
2 parents d90bbb7 + b3a9015 commit ce9965b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/conversion/string.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ fn main() {
2929
## Parsing a String
3030

3131
One of the more common types to convert a string into is a number. The idiomatic
32-
approach to this is to use the [`parse`] function and provide the type for the
33-
function to parse the string value into, this can be done either without type
34-
inference or using the 'turbofish' syntax.
32+
approach to this is to use the [`parse`] function and either to arrange for
33+
type inference or to specify the type to parse using the 'turbofish' syntax.
34+
Both alternatives are shown in the following example.
3535

3636
This will convert the string into the type specified so long as the [`FromStr`]
3737
trait is implemented for that type. This is implemented for numerous types

0 commit comments

Comments
 (0)