From 68843cefc0994507348fad6dbb1ae6041afb30fa Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 26 Jul 2023 14:14:02 -0700 Subject: [PATCH] Update introduction.md Fix typos in the Assignment Operators section. --- concepts/numbers/introduction.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/concepts/numbers/introduction.md b/concepts/numbers/introduction.md index f6ff69b1..3452c44c 100644 --- a/concepts/numbers/introduction.md +++ b/concepts/numbers/introduction.md @@ -72,13 +72,13 @@ people += 2; eggs += 3 * people; // eggs is now 6 ``` -Vairables `people` & `eggs` are initialized to `0`. -Then, we add integer value `2` over the existing value `0` of the variable `people` and assigne it back to `people`. +Variables `people` & `eggs` are initialized to `0`. +Then, we add integer value `2` over the existing value `0` of the variable `people` and assign it back to `people`. `people` becomes `2` now. Later, we add `3` eggs for each person, which turns out to be `6` eggs in total. -Now add this `6` to existing value `0` of the variable `eggs` and assigne it back to `eggs`. +Now add this `6` to existing value `0` of the variable `eggs` and assign it back to `eggs`. `eggs` will be `6` now. The equivalent expression would be `people = people + 2` and `eggs = eggs + (3 * people)` -[cpp_numerical_bases]: https://cplusplus.com/doc/hex/ \ No newline at end of file +[cpp_numerical_bases]: https://cplusplus.com/doc/hex/