From 2db4c3c7528ca04fd970e435364623f1d34b828b Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Mon, 6 Nov 2023 11:29:34 +0200 Subject: [PATCH] data/lab/arena: Fix "assignement" typo Fix: "assignement" -> "assignment" Signed-off-by: Razvan Deaconescu --- content/chapters/data/lab/content/arena.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/chapters/data/lab/content/arena.md b/content/chapters/data/lab/content/arena.md index d771745212..a6db242661 100644 --- a/content/chapters/data/lab/content/arena.md +++ b/content/chapters/data/lab/content/arena.md @@ -149,7 +149,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.