Skip to content

Commit

Permalink
Confusing and long sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
biotty committed Oct 13, 2019
1 parent d90bbb7 commit b3a9015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/conversion/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3a9015

Please sign in to comment.