File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ fn main() {
29
29
## Parsing a String
30
30
31
31
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 .
35
35
36
36
This will convert the string into the type specified so long as the [ ` FromStr ` ]
37
37
trait is implemented for that type. This is implemented for numerous types
You can’t perform that action at this time.
0 commit comments