Merge pull request #409 from aaaxx/patch-1

Fix a typo
This commit is contained in:
Carol (Nichols || Goulding) 2017-01-19 20:06:16 -05:00 committed by GitHub
commit 1438f0bc3a

View File

@ -241,7 +241,7 @@ Listing 10-9: A `main` function that demonstrates how we'd like to use the
Note that we want the function to take string slices because we don't want the Note that we want the function to take string slices because we don't want the
`longest` function to take ownership of its parameters, and we want the function `longest` function to take ownership of its parameters, and we want the function
to be able to accept slices of a `String` (like `a`) is as well as string to be able to accept slices of a `String` (like `a` is) as well as string
literals (`b`). Refer back to the "String Slices as Parameters" section of literals (`b`). Refer back to the "String Slices as Parameters" section of
Chapter 4 for more discussion about why these are the parameters we want. Chapter 4 for more discussion about why these are the parameters we want.