File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ fn main() {
28
28
29
29
## Parsing a String
30
30
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 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.
31
+ It's useful to convert strings into many types, but one of the more common string
32
+ operations is to convert them from string to number. The idiomatic approach to
33
+ this is to use the [ ` parse ` ] function and either to arrange for type inference or
34
+ to specify the type to parse using the 'turbofish' syntax. Both alternatives are
35
+ shown in the following example.
35
36
36
37
This will convert the string into the type specified as long as the [ ` FromStr ` ]
37
38
trait is implemented for that type. This is implemented for numerous types
You can’t perform that action at this time.
0 commit comments