Skip to content

Commit

Permalink
Update "Why is this bad?"
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasavola authored Aug 12, 2024
1 parent 4c4a821 commit 0d35c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/detectors/7-avoid-core-mem-forget.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The `core::mem::forget` function is used to forget about a value without running

## Why is this bad?

Using this function is a bad practice because it can cause memory leaks and logical errors.
Using this function is a bad practice because this can lead to memory leaks, resource leaks and logic errors.

## Issue example

Expand Down

0 comments on commit 0d35c6e

Please sign in to comment.