Skip to content

Commit

Permalink
update original
Browse files Browse the repository at this point in the history
  • Loading branch information
funkill committed Jul 24, 2024
1 parent 525ef9f commit bd53d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rustbook-en/src/ch03-03-how-functions-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ assigning a value to it with the `let` keyword is a statement. In Listing 3-1,
</Listing>

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:
Expand Down

0 comments on commit bd53d4a

Please sign in to comment.