Skip to content

Commit

Permalink
Update program-architecture.md (#618)
Browse files Browse the repository at this point in the history
Remove duplicated line
  • Loading branch information
oxy-Op authored Nov 19, 2024
1 parent d4f4e74 commit 87d2c56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions content/courses/program-optimization/program-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 87d2c56

Please sign in to comment.