From 2201ea1101a629f35b0a072a7111c9f60a9e86e6 Mon Sep 17 00:00:00 2001 From: aaaxx Date: Thu, 19 Jan 2017 13:21:19 +0100 Subject: [PATCH] Fix a typo --- src/ch10-03-lifetime-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch10-03-lifetime-syntax.md b/src/ch10-03-lifetime-syntax.md index 71f9f0e..03f06b0 100644 --- a/src/ch10-03-lifetime-syntax.md +++ b/src/ch10-03-lifetime-syntax.md @@ -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 `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 Chapter 4 for more discussion about why these are the parameters we want.