Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions learn_class/modern_cpp_30/smart_ptr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ private:

```cpp
template <typename T>
class smater_ptr {
class smart_ptr {
public:
explicit smater_ptr(
explicit smart_ptr(
T* ptr = nullptr)
: ptr_(ptr) {}
~smater_ptr()
~smart_ptr()
{
delete ptr_;
}
Expand All @@ -54,7 +54,7 @@ private:

```cpp
template <typename T>
class smater_ptr {
class smart_ptr {
public:
...
T& operator*() const { return *ptr_; }
Expand Down