mirror of
https://github.com/rust-lang/book.git
synced 2026-12-04 05:09:40 -06:00
Change "semantics" to "mechanics"; when referring to compiler behavior, rather than syntax.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user