mirror of https://github.com/rust-lang/book
typo: assignement -> assignment
This commit is contained in:
parent
15aef43157
commit
4f7799e3b3
|
@ -194,7 +194,7 @@ corresponding fields in `user1`, but we can choose to specify values for as
|
|||
many fields as we want in any order, regardless of the order of the fields in
|
||||
the struct’s definition.
|
||||
|
||||
Note that the struct update syntax uses `=` like an assignement; this is
|
||||
Note that the struct update syntax uses `=` like an assignment; this is
|
||||
because it moves the data, just as we saw in the “Ways Variables and Data
|
||||
Interact: Move” section. In this example, we can no longer use `user1` after
|
||||
creating `user2` because the `String` in the `username` field of `user1` was
|
||||
|
|
|
@ -129,7 +129,7 @@ corresponding fields in `user1`, but we can choose to specify values for as
|
|||
many fields as we want in any order, regardless of the order of the fields in
|
||||
the struct’s definition.
|
||||
|
||||
Note that the struct update syntax uses `=` like an assignement; this is
|
||||
Note that the struct update syntax uses `=` like an assignment; this is
|
||||
because it moves the data, just as we saw in the [“Ways Variables and Data
|
||||
Interact: Move”][move]<!-- ignore --> section. In this example, we can no
|
||||
longer use `user1` after creating `user2` because the `String` in the
|
||||
|
|
Loading…
Reference in New Issue