From bd53d4a573a00512064cdbb05cdaa847ee3b28f8 Mon Sep 17 00:00:00 2001 From: funkill2 Date: Wed, 24 Jul 2024 04:00:14 +0300 Subject: [PATCH] update original --- rustbook-en/src/ch03-03-how-functions-work.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rustbook-en/src/ch03-03-how-functions-work.md b/rustbook-en/src/ch03-03-how-functions-work.md index b282cbb2a..bb8c73a62 100644 --- a/rustbook-en/src/ch03-03-how-functions-work.md +++ b/rustbook-en/src/ch03-03-how-functions-work.md @@ -125,7 +125,8 @@ assigning a value to it with the `let` keyword is a statement. In Listing 3-1, Function definitions are also statements; the entire preceding example is a -statement in itself. +statement in itself. (As we will see below, *calling* a function is not a +statement.) Statements do not return values. Therefore, you can’t assign a `let` statement to another variable, as the following code tries to do; you’ll get an error: