Skip to content

Commit

Permalink
missed formatting for subtraction
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwaits committed Aug 19, 2024
1 parent 0f4977a commit 6debf1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/docs/stacks/clarity/basic-arithmetic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ Clarity's arithmetic functions are designed with blockchain-specific considerati
### 2. Subtraction (-)

**What**: Subtracts integers from the first argument.

**Why**: Crucial for calculations involving decreasing values or finding differences.

**When**: Use when you need to decrease values, calculate differences, or perform any subtractive operation.
**How**: Code example and explanation.

**Best Practices**:
- Guard against underflow
- Consider using uint for values that shouldn't go negative
Expand Down

0 comments on commit 6debf1e

Please sign in to comment.