From fd777d2f5050f846090c8a831c046ff89e5b158d Mon Sep 17 00:00:00 2001 From: Oxy <76278067+oxy-Op@users.noreply.github.com> Date: Sun, 17 Nov 2024 07:57:04 +0530 Subject: [PATCH] Update program-architecture.md Remove duplicated line --- content/courses/program-optimization/program-architecture.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/courses/program-optimization/program-architecture.md b/content/courses/program-optimization/program-architecture.md index 119732abc..ba1f6e2f3 100644 --- a/content/courses/program-optimization/program-architecture.md +++ b/content/courses/program-optimization/program-architecture.md @@ -1526,8 +1526,6 @@ would end up as 0. `saturating_add` will keep it at its max if it's about to roll over, so `255 + 1 = 255`. The `checked_add` function will throw an error if it's about to overflow. Keep this in mind when doing math in Rust. Even though `kills` is a u64 and will never roll with it's current programming, it's good -it's about to overflow. Keep this in mind when doing math in Rust. Even though -`kills` is a u64 and will never roll with it's current programming, it's good practice to use safe math and consider roll-overs. ```rust filename="attack_monster.rs"