Skip to content

Commit 9eeb10e

Browse files
authored
[speedywagon] fix: remove delete instruction (#964)
[no important files changed]
1 parent b0d892c commit 9eeb10e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

exercises/concept/speedywagon/.docs/introduction.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ Superhero* dianaPrince = &wonder_woman;
8585
dianaPrince->superpower = "Lasso of Truth";
8686
// Using the -> operator to access member variable superpower:
8787
std::cout << "Wonder Woman, possesses the mighty " << dianaPrince->superpower;
88-
// Memory cleanup:
89-
delete dianaPrince;
9088
```
9189

9290
## Pointers vs. references

0 commit comments

Comments
 (0)