From 1e8dae538572ddc1797bd3df011d9bfb81fdf2f6 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 6 Jan 2017 17:52:49 -0500 Subject: [PATCH] Add an explanation of parameter vs argument --- src/ch03-03-how-functions-work.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ch03-03-how-functions-work.md b/src/ch03-03-how-functions-work.md index 2d2f1f887..ddd8a7e1d 100644 --- a/src/ch03-03-how-functions-work.md +++ b/src/ch03-03-how-functions-work.md @@ -52,8 +52,16 @@ called and its message is printed. ### Function Parameters -Functions can also have parameters. The following rewritten version of -`another_function` shows what parameters look like in Rust: +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 +a function's definition or the concrete values passed in when you call a +function. + +The following rewritten version of `another_function` shows what parameters +look like in Rust: Filename: src/main.rs