Skip to content

Commit 179256a

Browse files
authored
Merge pull request #1805 from eje211/patch-1
Updated first sentence of "parsing a string" in string.md
2 parents a6bc33b + 5b307a5 commit 179256a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/conversion/string.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ fn main() {
2828

2929
## Parsing a String
3030

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.
3536

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

0 commit comments

Comments
 (0)