From 1e255b7863af7cd2bfcd221ff34dd88e71738f41 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 4 Feb 2022 17:27:40 -0500 Subject: [PATCH] Change "semantics" to "mechanics"; when referring to compiler behavior, rather than syntax. --- nostarch/chapter04.md | 2 +- src/ch04-01-what-is-ownership.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nostarch/chapter04.md b/nostarch/chapter04.md index 0edc26dfc..cbcad103e 100644 --- a/nostarch/chapter04.md +++ b/nostarch/chapter04.md @@ -525,7 +525,7 @@ implement `Copy`: ### Ownership and Functions -The semantics for passing a value to a function are similar to those for +The mechanics of passing a value to a function are similar to those when assigning a value to a variable. Passing a variable to a function will move or copy, just as assignment does. Listing 4-3 has an example with some annotations showing where variables go into and out of scope. diff --git a/src/ch04-01-what-is-ownership.md b/src/ch04-01-what-is-ownership.md index df99b4e2a..4a8c4cfc9 100644 --- a/src/ch04-01-what-is-ownership.md +++ b/src/ch04-01-what-is-ownership.md @@ -404,7 +404,7 @@ implement `Copy`: ### Ownership and Functions -The semantics for passing a value to a function are similar to those for +The mechanics of passing a value to a function are similar to those when assigning a value to a variable. Passing a variable to a function will move or copy, just as assignment does. Listing 4-3 has an example with some annotations showing where variables go into and out of scope.