Skip to content

Commit

Permalink
Merge pull request #1282 from biotty/master
Browse files Browse the repository at this point in the history
Confusing and long sentence
  • Loading branch information
marioidival committed Oct 14, 2019
2 parents d90bbb7 + b3a9015 commit ce9965b
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 ce9965b

Please sign in to comment.