JLospinoso / ccc

Companion Code for C++ Crash Course
https://ccc.codes
GNU General Public License v3.0
377 stars 105 forks source link

Page 96, `delete[] my_int_ptr` s/b `delete[] my_int_array_ptr` #180

Closed adem closed 4 years ago

adem commented 4 years ago

In the Dynamic Storage Duration > Dynamic Arrays section, the example for deallocating the previously allocated my_int_array_ptr reads delete[] my_int_ptr.

Instead, it should read delete[] my_int_array_ptr.

JLospinoso commented 4 years ago

Thanks, @adem!