typo: assignement -> assignment

This commit is contained in:
Andrew Morgan 2022-01-01 22:02:15 +00:00 committed by Carol (Nichols || Goulding)
parent 15aef43157
commit 4f7799e3b3
2 changed files with 2 additions and 2 deletions

View File

@ -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 structs 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

View File

@ -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 structs 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