Skip to content

Commit

Permalink
data/lab/arena: Fix "assignement" typo
Browse files Browse the repository at this point in the history
Fix: "assignement" -> "assignment"

Signed-off-by: Razvan Deaconescu <[email protected]>
  • Loading branch information
razvand committed Nov 6, 2023
1 parent fc669dc commit 994f975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/chapters/data/lab/content/arena.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Each of these special functions may be called automatically by the compiler:
- the assignment operator is called automatically when an object is assigned an object of the same type.
- the destructor is called automatically whenever an object goes out of scope.

**Note: the difference between initialization and assignment is that the initialization occurs when an object is being declared and occurs a single time (`Obj o1 = 1`), whereas assignement is decoupled from the declaration site and may occur multiple times (provided that the variable is mutable).**
**Note: the difference between initialization and assignment is that the initialization occurs when an object is being declared and occurs a single time (`Obj o1 = 1`), whereas assignment is decoupled from the declaration site and may occur multiple times (provided that the variable is mutable).**

Compile and run the program in `operators.d`.
Notice how the different special functions are automatically called.
Expand Down

0 comments on commit 994f975

Please sign in to comment.