From 52b7fcbfdd35915cb21e6d492fb6c86764f53b47 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sat, 7 Jan 2017 10:34:17 -0500 Subject: [PATCH] Fix spelling errors!!! --- src/ch03-03-how-functions-work.md | 2 +- src/ch10-03-lifetime-syntax.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch03-03-how-functions-work.md b/src/ch03-03-how-functions-work.md index af8d5ee8b..2f559b53d 100644 --- a/src/ch03-03-how-functions-work.md +++ b/src/ch03-03-how-functions-work.md @@ -56,7 +56,7 @@ Functions can also be defined to have *parameters*, which are special variables that are part of a function's signature. When a function has parameters, we can provide it with concrete values for those parameters. Technically, the concrete values are called *arguments*, but in casual conversation people tend to use -the words "parameter" and "argument" interchangably for either the variables in +the words "parameter" and "argument" interchangeably for either the variables in a function's definition or the concrete values passed in when you call a function. diff --git a/src/ch10-03-lifetime-syntax.md b/src/ch10-03-lifetime-syntax.md index c831554e5..86e60d5a6 100644 --- a/src/ch10-03-lifetime-syntax.md +++ b/src/ch10-03-lifetime-syntax.md @@ -172,7 +172,7 @@ Again, the lifetime names are declared in the angle brackets where generic type parameters are declared, and this is because lifetimes are a form of generics. In the examples above, `'a` and `'b` were concrete lifetimes: we knew about `r` and `x` and how long they would live exactly. However, when we write a -function, we can't know beforehand exactly all of the valuess that it could be +function, we can't know beforehand exactly all of the values that it could be called with and how long they will be valid for. We have to explain to Rust what we expect the lifetime of the parameter to be (we'll learn about how to know what you expect the lifetime to be in a bit). This is similar to writing a