Change "semantics" to "mechanics"; when referring to compiler behavior, rather than syntax.

This commit is contained in:
Tim
2022-05-04 13:45:16 -04:00
parent d90e0acfc7
commit 1e255b7863
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.