You are entirely correct. I had only checked the repl and not the actual blog post.
My mistake, thanks for catching it!
You are also correct about how the method is implemented. I just updated the post for people that go through it in the future.
Thanks so much for the feedback max!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You are entirely correct. I had only checked the repl and not the actual blog post.
My mistake, thanks for catching it!
You are also correct about how the method is implemented. I just updated the post for people that go through it in the future.
Thanks so much for the feedback max!