Skip to content

Commit

Permalink
Update developer-hub/src/reference_docs/safe_defensive_programming.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Girini <[email protected]>
  • Loading branch information
CrackTheCode016 and juangirini authored Nov 22, 2023
1 parent 77cdda4 commit c6c399c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
//! <summary><b>Solution: Saturating</b></summary>
//! For Alice's balance problem, using `saturated_sub` could've mitigated this issue. As debt or
//! having a negative balance is not a concept within blockchains, a saturating calculation
//! would've simply limited her balance to the lower bound of u32.
//! would've simply limited her balance to the lower bound of u32.
//!
//! In other words: Alice's balance would've stayed at "0", even after being slashed.
//!
Expand Down

0 comments on commit c6c399c

Please sign in to comment.