Skip to content

Commit 5b307a5

Browse files
authored
Update first sentence of "parsing a string" in string.md
Currently, the version of this sentence that's online makes no sense at all. The version in the source does literally make sense, but it is very difficult to read. This version is less terse, but I think it's much clearer.
1 parent 0214ba6 commit 5b307a5

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)